POV-Ray : Newsgroups : povray.beta-test : bug with #declare order : Re: bug with #declare order Server Time
30 Jul 2024 20:22:58 EDT (-0400)
  Re: bug with #declare order  
From: Anders K 
Date: 26 Oct 2001 10:36:56
Message: <3bd97508@news.povray.org>
> #macro Go(Level)
>   #debug "1\n"
>   #switch (Level>0?Go(Level-1):0)
>     #case(0) 1  #break
>   #end
> #end

The problem here is that Go(Level - 1) is *always* evaluated, whether Level
> 0 or not, because POV-Ray doesn't use short-circuit evaluation.


Post a reply to this message

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