|
jat63 Wanderer
Joined: 22 Sep 2003 Posts: 53 Location: United Kingdom
|
Posted: Sat Dec 16, 2006 1:32 pm
[1.24] Problems with #ADDKEY |
If I execute the following script
Code: |
#var A {}
#addkey A a 1
#echo @A.a
A.a=99
#echo @A.a
#if (@A.a= 99) {A.a=100}
#echo @A.a |
I get the output
Quote: |
1
99
ERROR: argument still on stack: A.a=100
99
A.a=100 |
Has the syntax for assigning to a record variable using the . syntax changes or is it just not supported yet? |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Sat Dec 16, 2006 2:03 pm |
It works if you change
#if ((@A.a)=99) {A.a=100}
to
#if (@A.a=99) {#EXEC {A.a=100}}
or
#if (@A.a=99) {blah;A.a=100}
Quirky |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Ceres Wanderer
Joined: 25 May 2006 Posts: 88
|
Posted: Sat Dec 16, 2006 2:51 pm |
Quirky implies that this works as designed, If it isn't working as designed then it is a Bug and not a quirk.
|
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Sat Dec 16, 2006 3:12 pm |
Thank you, was being flippant
|
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
jat63 Wanderer
Joined: 22 Sep 2003 Posts: 53 Location: United Kingdom
|
Posted: Thu Jan 18, 2007 3:02 pm |
Zug, could I just check to see if you agree that there is a bug in the parser for
when it is the first comment after a {.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu Jan 18, 2007 8:40 pm |
Yes, there seems to be a bug with this. I verified the above problem and have added it to the high priority bug list.
|
|
|
|
|
|