POV-Ray : Newsgroups : povray.unofficial.patches : REQ: 'parse' function : REQ: 'parse' function Server Time
2 Sep 2024 20:17:55 EDT (-0400)
  REQ: 'parse' function  
From: Peter Popov
Date: 12 Jul 1999 13:58:46
Message: <378b1e14.33579230@204.213.191.228>
Greetings all.

I just stumbled upon some limitations in the POV language and thought
of a way they could be avoided. These limitations are:

-you can't pass a macro as a parameter of another macro
-POV can't evaluate an expression to a float when reading from a file

The solution I have in mind is a parse(string) function. It simply
inserts the string in the code at the time of parsing (as include
files and macros are treated). So you can to something like:

#macro lissagousFunction(a,b,c)
 ...
#end

#macro connectTheDots(func, foo1, foo2)
 ...
 thisAndThis = parse(func);
 ...
#end

connectTheDots ("lissagousFunction(3,0,1)", 5, 1)

Does it make sense?


Peter Popov
ICQ: 15002700


Post a reply to this message

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