|
![](/i/fill.gif) |
Perhaps a better solution, to avoid both namespace collisions and
automatic name mangling, would be to add a new object type, the
'container'. It would work something like this:
#declare stuff = container;
#declare stuff.x = 5;
#declare stuff.loc = <3,4,6>;
#declare stuff.ball = sphere {0,1}
Basically, the container acts as a namespace on its own. Each include
file could use a container for its variables and declarations, except
for those it needs exported globally.
...Chambers
Post a reply to this message
|
![](/i/fill.gif) |