POV-Ray : Newsgroups : povray.general : Warn About Naming Conflicts? : Re: Warn About Naming Conflicts? Server Time
31 Jul 2024 16:18:39 EDT (-0400)
  Re: Warn About Naming Conflicts?  
From: Warp
Date: 5 Dec 2006 20:34:24
Message: <45761e20@news.povray.org>
Ben Chambers <ben### [at] pacificwebguycom> wrote:
> OK, as an offshoot from another thread here, perhaps an even simpler 
> solution to the problem exists.  What if, everytime you #declare an 
> object which has already been #declare'd, the parser gives you a warning 
> telling you what was re#declare'd and where?

#declare Index = 0;
#while(Index < 10000)
  #declare TheObject = sphere { <Index, 0, 0>, 1 pigment { rgb 1 } };
  ... (do something with TheObject) ...
  #declare Index = Index+1;
#end

  How many warnings do you get?

-- 
                                                          - Warp


Post a reply to this message

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