POV-Ray : Newsgroups : povray.text.tutorials : #declare vs. #local Mojo : Re: #declare vs. #local Mojo Server Time
20 Apr 2024 07:14:41 EDT (-0400)
  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-2023 Persistence of Vision Raytracer Pty. Ltd.