POV-Ray : Newsgroups : povray.bugreports : #local 'bug' cripples usefulness : Re: #local 'bug' cripples usefulness Server Time
28 Sep 2024 11:05:41 EDT (-0400)
  Re: #local 'bug' cripples usefulness  
From: Philippe Debar
Date: 27 Sep 1998 09:22:35
Message: <360e2e0b.0@news.povray.org>
Hello

Dan Connelly wrote in message <360CDC9A.FA6A3850@flash.net>...

>Note doing an #undef anItem  before #local prevents the error
>message.


Yes, of course it does... to be on the safe side, you can even add something
like

#ifdef (anItem)
  #local thrulyImprobableName_dkjgglk=anItem
  #undef anItem
#end

<some code>

#undef anItem
#ifdef(thrulyImprobableName_dkjgglk)
  #declare anItem=thrulyImprobableName_dkjgglk
#end

BUT, apart from being tedious, (and eventually fucking up the anItem true
scope) this does not keep what I thought to be the main advantage of #local:
the opportunity to use any name in generic #include files.

Don't misunderstand me: I do not complain - I explain. Pov is really good
and I really apreciate #local much as it is. I hope this slight restriction
will be indicated in the final manual.


Povingly,


Philippe


Post a reply to this message

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