Brent Site Admin
Joined: 01 Jul 2005 Posts: 800
|
Posted: Sep 18th, 2014, 6:08pm Post subject: Changing how object members are accessed |
|
|
I've grown tired of the limitations imposed by Carl's object member syntax, so I plan to change it to something a bit more standard. The biggest change is the requirement of a dot (.) to call any named member. The following table summarizes the changes.
New Syntax | Old Syntax/Notes |
---|
#obj expression | unchanged | #obj?expression | unchanged; possibly removed | #obj.aProperty | #obj aProperty (assignment only) | #obj.aMethod(args) | #obj aMethod(args) or #obj!aMethod(args) | #obj.aMethod? | #obj aMethod? or #obj!aMethod? | #obj!aKey | none | aStruct.aMember | unchanged |
_________________ Brent |
|