June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -10,7 +10,7 @@ class Extender :: BaseExtender
|
|||
]
|
||||
}
|
||||
|
||||
program =
|
||||
public program =
|
||||
[
|
||||
var anObject := 234.
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
{"phoneNumbers": [
|
||||
{
|
||||
"type": "home",
|
||||
"number": "212 555-1234"
|
||||
},
|
||||
{
|
||||
"type": "office",
|
||||
"number": "646 555-4567"
|
||||
},
|
||||
{
|
||||
"type": "mobile",
|
||||
"number": "123 456-7890"
|
||||
}]}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
mutable struct Contact
|
||||
name::String
|
||||
phonenumber::Dict{Any,Any}
|
||||
end
|
||||
|
||||
person = Contact("Jane Doe", Dict())
|
||||
person.phonenumber["home"] = "212 555-1234"
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
obj = script("MyClass").new()
|
||||
|
||||
put obj.foo
|
||||
-- "FOO"
|
||||
|
||||
-- add new property 'bar'
|
||||
obj.setProp(#bar, "BAR")
|
||||
put obj.bar
|
||||
-- "BAR"
|
||||
Loading…
Add table
Add a link
Reference in a new issue