Tim Attwood <tim### [at] comcast net> wrote:
> We could add a specific return command for passing values
> by parameter...
> #macro foobar(A, B)
> #return A = foo;
> #return B = bar;
> #end
I have a much simpler suggestion: If you don't want to modify an identifier
given as parameter, don't assign anything to it. It's that simple.
If you need a copy of the identifier, then copy it:
#macro foobar(A)
{
#local LocalCopyOfA = A;
...
}
No need to make the SDL parser any more complicated than it already is.
--
- Warp
Post a reply to this message
|