Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
jat63
Wanderer


Joined: 22 Sep 2003
Posts: 53
Location: United Kingdom

PostPosted: 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?
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: 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... ;)
Reply with quote
Ceres
Wanderer


Joined: 25 May 2006
Posts: 88

PostPosted: 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.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: 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... ;)
Reply with quote
jat63
Wanderer


Joined: 22 Sep 2003
Posts: 53
Location: United Kingdom

PostPosted: 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
Code:
A.a=100
when it is the first comment after a {.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net