Yes - all SkookumScript arguments are passed by reference.
The benefit of return arguments is that you don’t need a pre-existing object to assign a value to. You just need to set a return argument before the end of a routine and the variable that was used in the call will be bound to the return argument object.
[The return argument syntax will also soon be updated so that you can declare a variable
!var right in the result argument. So the below is using this somewhat newer syntax.]
Here is what the call looks like using (syntax updated) return arguments:
Here is what it looks like using pass by reference objects (assuming their default constructors are in place):
Not too bad but I prefer the return argument syntax.
Code Snippet Examples
As for the code snippet examples - yes! These are coming.
A tiny few of the syntax production labels have links to document pages and the plan is that they all will.
Until and after then please continue to post language any language questions you may have in the Language and Compiling category.