POV-Ray : Newsgroups : povray.newusers : Incrementing variables in #for loop : Re: Incrementing variables in #for loop Server Time
20 May 2024 17:37:28 EDT (-0400)
  Re: Incrementing variables in #for loop  
From: jr
Date: 26 Mar 2020 22:50:00
Message: <web.5e7d693524003e8451952ca0@news.povray.org>

"Bald Eagle" <cre### [at] netscapenet> wrote:
> So, I came across a strange complaint from the POV-Ray parser. (qtpovray 3.8)
> ...
> I have a standalone file that makes the virus particle for jr's animation.
> Works fine.
> I copied and pasted the object definition into an include file, and I was
> suddenly getting the "Parse Error: Cannot pass uninitialized identifier to
> non-optional LValue." error.
> ...
> I'm not sure why it would work in one scene, and not the other.
> It's as if the loop or the #local somehow negates the global name, but only in
> the include file.   :O

docs "declare vs local", see paragraph beginning with "Use of #local
within an include file ...".  (no different, afaict, from being within a macro)

regards, jr.

Post a reply to this message

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