POV-Ray : Newsgroups : povray.general : array.length()? : Re: array.length()? Server Time
30 Jul 2024 12:25:07 EDT (-0400)
  Re: array.length()?  
From: Christian Froeschlin
Date: 24 Feb 2009 14:15:21
Message: <49a44749$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.