Quote:
Originally Posted by BobC
The doc section on this is a bit to "economical" to help me. I don't even know what to try. (and "trying" with this thing is tedious at best)
I also see mention of @ and * operators here and there but there is no mention in the document of them. Are they for something other than JS?
|
@ is only for the code sections @sample, @block etc.
* is multiplication (ie. x * y) but is also used in function declarations to denote that an argument is a namspace...
Code:
function SetFoo(n*)
(
n.foo = 1;
);
SetFoo(a); // sets a.foo
SetFoo(b); // sets b.foo
The relative namespaces work like this...
Code:
function SetParentFoo()
(
this..foo = 1;
);
c.d.SetParentFoo(); // sets c.foo
Does that make sense?