|
![](/i/fill.gif) |
In article <39b2fc70$1@news.povray.org>, "Thorsten Froehlich"
<tho### [at] trf de> wrote:
> > # a = a + 5
>
> I have to admit, I kind of like this idea ... and it does not add a
> additional symbol to the scene language.
I think it would be possible by adding a boolean "Modify_Only" parameter
to the Parse_Declare() function(to tell it whether to create a new
variable or give an error if given an undefined symbol), and add a call
to Parse_Declare() here, replacing the "UNGET EXIT" that is there now:
OTHERWISE
Parse_Declare(TRUE);
END_CASE
END_EXPECT
Most of the same code from the #set patch could be reused for this, for
modifying the most local variable, just check the Modify_Only parameter
instead of the token.
I just finished making these modifications, I haven't tested it yet
though...it might blow up in my face.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |