|
|
Christoph Hormann <chr### [at] gmxde> wrote:
> Is there an elegant method for avoiding such problems in C++ BTW?
Namespaces were added to the language in order to help avoiding this
kind of problems.
Of course it needs that those type declarations are made inside the
namespace when they are defined. I don't think you can "move" a definition
inside a namespace once it has been defined globally.
Anyways, this is the main reason why all the C++ standard libraries and
definitions are inside the std namespace instead of being defined globally
(as is the case in C).
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|