POV-Ray : Newsgroups : povray.general : Who Not Make Naming Conflicts Disappear? : Re: Who Not Make Naming Conflicts Disappear? Server Time
31 Jul 2024 16:31:44 EDT (-0400)
  Re: Who Not Make Naming Conflicts Disappear?  
From: nemesis
Date: 6 Dec 2006 16:20:00
Message: <web.457733be315c6ef0f1fd3ead0@news.povray.org>
"Randall Sawyer" <sra### [at] yahoocom> wrote:
> Currently, authors of POV-Ray files manage naming collisions themselves.
> They know the identifiers declared in their include files as well as the
> ones they write themselves.  Let's not try to fix what isn't broken.

ok.

> Modify the parser in such a way that it assembles each include file as it
> goes.

Sounds a lot like prefixing each declare in the include with a unique
identifier, perhaps chosen by us. ;)

> I cannot use names used in B1.inc or used in B2.inc.

You could use them freely if they were local to the files including them. ;)

Ok, now reasoning with your suggestion further, say i can now use the same
identifier declared in B1.inc for another object/texture/whatever.  Great,
all fine and dandy.  Now, what if i also want to use the original B1.inc
declared object under that identifier?  How do i do that if the parser
mangled the name with some random string which i don't know of (automatic
naming collision management)?

That's not a problem with aliases i get to choose myself.  Sometimes,
explicit is better than implicit...

this discussion should probably be better off under the Standards thread...


Post a reply to this message

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