POV-Ray : Newsgroups : povray.beta-test : v3.7 example scenes : Re: v3.7 example scenes Server Time
28 Jul 2024 22:16:41 EDT (-0400)
  Re: v3.7 example scenes  
From: Christian Froeschlin
Date: 23 Sep 2008 05:29:06
Message: <48d8b6e2$1@news.povray.org>
Chris Cason wrote:

> It would require the parser to track the deprecated
> status of each #declared item (passing up the state if a new declare
> inherits a deprecated declare, and so forth), which isn't as clean as
> I'd like it to be.

If the SDL could be changed to allow calling parameterless macros 
without parantheses, it might be possible to do something like

#declare I_Glass4_Deprecated =
     interior {
       ior 1.5
       fade_distance 2.0
       fade_power 1001
     }

#macro I_Glass4()
   #warning "I_Glass4 is deprecated"
   I_Glass4_Deprecated
#end


Post a reply to this message

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