You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

namespaces.l2 258B

123456789101112131415
  1. obj := {
  2. foo: "hello world"
  3. }
  4. print obj.foo
  5. # Assignments
  6. obj.foo = 100
  7. print obj.foo
  8. # Nested namespaces should work
  9. obj.bar = {baz: "how's your day going?"}
  10. print obj.bar.baz
  11. # Empty namespace literal (should parse to namespace, not function)
  12. print {}