POV-Ray : Newsgroups : povray.general : how to call multiple instances of a macro? : Re: how to call multiple instances of a macro? Server Time
30 Jul 2024 18:14:26 EDT (-0400)
  Re: how to call multiple instances of a macro?  
From: clipka
Date: 12 Mar 2009 11:35:01
Message: <web.49b92ae2dc08335f708085d0@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> ah very clever, faking an eval using file I/O! What a dirty trick ;)

YESS! =B)

"If at first you don't succeed... resort to dirty tricks"

The #write and #include combo rules!

I recently embarked on using file I/O to re-use interim parsing results, only to
find that hey, why mess around with #read and yet another #while loop to
assemble the objects in the second pass, when you can do *all* the work in the
first pass and just #include the whole smash...

From there, it is only a small step to #writing out complete scene files... or
just very short snippets of code, for that matter.


Post a reply to this message

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