POV-Ray : Newsgroups : povray.text.tutorials : #declare vs. #local Mojo : Re: #declare vs. #local Mojo Server Time
5 Oct 2024 15:01:17 EDT (-0400)
  Re: #declare vs. #local Mojo  
From: Thorsten Froehlich
Date: 25 Jun 2015 07:40:01
Message: <web.558be8598cf046ea5feac50c0@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.

Expected? No.
Knew? Yes.

The problem with this odd behavior is that it is actively being used. Or used to
be at least.

Thorsten


Post a reply to this message

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