Tim Attwood wrote:
> #macro resize_array(ar)
> ...
> #declare ar = new_ar;
> #end
>
> resize_array(MyArray)
Interesting. I didn't know macro parameters got by-reference
semantics when an identifier was passed instead of an RVALUE.
I think I'd prefer to assign the value using #local, though,
to make it clear no global variable "ar" is involved.
Post a reply to this message
|