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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Feb 22, 2010 7:24 pm   

[3.14a] bug when adding an item with %additem which contains parentheses
 
Try the following code:
Code:
#VAR TEST {1|2}
#PRINT @TEST
#SHOW %additem("(testString)my test", @TEST)
#VAR TEST %additem("(testString)my test", @TEST)
#PRINT @TEST


There appears to be a bug when using %additem to add a value that contains parentheses. Notice that the #SHOW displays exactly what you would expect. But when setting a variable to that %additem value, the last item get repeated before the new item is added. It is extremely odd. It looks like the problem is in the #var command rather than the %additem() function, since the #SHOW works fine. The bug only shows up if the added item starts with a open parenthesis character: "(". It does not show up if the first character is any other punctuation mark I've tried. It also happens if you use "TEST = ..." instead of "#VAR TEST ..."
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Feb 23, 2010 12:14 am   
 
Yep, it definitely looks like a problem with the #VAR command somehow. I'll add it to the bug list.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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