POV-Ray : Newsgroups : povray.binaries.scene-files : lens flare in scene : Re: lens flare in scene Server Time
17 May 2024 00:16:58 EDT (-0400)
  Re: lens flare in scene  
From: Tek
Date: 7 Mar 2010 20:18:52
Message: <4b94507c@news.povray.org>
"Christian Froeschlin" <chr### [at] chrfrde> wrote in message 
news:4b939fed@news.povray.org...
>
> Also, I use an almost identical "for" macro, except my
> names are reversed: The "callback" macro I call FOR and
> the "for" macro I call FROM_TO, then the usage has a
> slighly more traditional syntax ;)

I've actually only used my "for" macro once, therefore meaning that it's 
taken me *more* effort than if I hadn't written it at all! It never seems to 
quite suit any code I'm writing.

> #macro FOR(I)
>   //Do something with I
> #end FROM_TO(1,10)
>
> Also I have indexed copies of the macro for nested loops.

Interesting, that certainly looks better than my one. I might try that.

-- 
Tek
http://evilsuperbrain.com


Post a reply to this message

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