|
![](/i/fill.gif) |
In most languages there'd be an eval() statement.
In POV SDL there's a nasty Parse_String() macro in strings.inc
#include "strings.inc"
#declare var0 = "foo";
#declare var1 = "bar";
#declare var2 = "baz";
#declare J=0;
#while (J<3)
#declare A = concat("var",str(J,1,0));
#debug concat(Parse_String(A),"\n")
#declare J=J+1;
#end
It is much nicer, and more efficient, to create var as an array and use
var[J].
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
![](/i/fill.gif) |