POV-Ray : Newsgroups : povray.text.tutorials : #declare vs. #local Mojo : Re: #declare vs. #local Mojo Server Time
27 Nov 2021 21:20:19 EST (-0500)
  Re: #declare vs. #local Mojo  
From: Cousin Ricky
Date: 10 Sep 2015 17:15:00
Message: <web.55f1f1d08cf046eadb6413070@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Some fun(?) fact to know:
>
> If, in an include file or macro, you use #declare with an identifier
> that already happens to exist at a non-global scope, you will NOT change
> the corresponding global variable, but the most local variable of that name.
>
> Expected that? I didn't.

http://wiki.povray.org/content/Reference:Declare_and_Local_Directives#Identifier_Name_Collisions


Post a reply to this message

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