POV-Ray : Newsgroups : povray.general : Is this a bug, or am I missing something? : Re: Is this a bug, or am I missing something? Server Time
19 Nov 2024 07:34:00 EST (-0500)
  Re: Is this a bug, or am I missing something?  
From: Warp
Date: 3 Apr 2002 14:32:40
Message: <3cab58d8@news.povray.org>

> I'm not so sure it was wasting. Note 6.2.8.5 shows only #declare as example. In
> 6.2.2.2 there is a general rule described (or at least it is my interpretation)
> that #local not influences identifiers outside of macro.

  But you are modifying the external identifier with the #local command
because you are modifying the given parameter.
  The paramters to a macro are passed by reference, not by value.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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