POV-Ray : Newsgroups : povray.unix : Some notes about Cygwin/MinGW compilation : Re: Some notes about Cygwin/MinGW compilation Server Time
30 Apr 2024 20:59:42 EDT (-0400)
  Re: Some notes about Cygwin/MinGW compilation  
From: Warp
Date: 2 Nov 2002 14:13:12
Message: <3dc423c7@news.povray.org>
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

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