Event Syntax Confusion

Hi all!

Perhaps someone can help me understand the difference between the following ways of accessing objects in an Event? The Event helpfile suggests the latter is a “shorter way to do the same” as the first, but that doesn’t seem to be the case with functions…

~event = (a: {1+2});

~event[\a] // returns A Function
~event.a // returns result of function

Thanks in advance!!!

See here: http://doc.sccode.org/Classes/Environment.html#Using%20Environments%20as%20object%20prototypes

“Shorter way to do the same thing” isn’t accurate – the explanation is taking a shortcut there.

hjh

Ah, perfect! Thanks so much!