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
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Fri Jun 04, 2010 10:34 pm   

[3.18d] BUG: Unable to delete keys with multiple words.
 
#delkey fails when you specify a key with multiple words.

Code:
#say ""
#print {Clearing testvar}
testvar = %null
#print {Printing testvar}
#showdb @testvar
#print {Adding key 'word'}
#addkey testvar {word}
#print {Printing testvar}
#showdb @testvar
#print {Deleting key 'word'}
#delkey testvar {word}
#print {Printing testvar}
#showdb @testvar
#print {Adding key 'two words'}
#addkey testvar {two words}
#print {Printing testvar}
#showdb @testvar
#print {Deleting key 'two words'}
#delkey testvar {two words}
#print {Printing testvar}
#showdb @testvar


Quote:
Clearing testvar
Printing testvar

Adding key 'word'
Printing testvar
word:

Deleting key 'word'
Printing testvar

Adding key 'two words'
Printing testvar
two words:

Deleting key 'two words'
Printing testvar
two words:


Last edited by GeneralStonewall on Sat Jun 05, 2010 1:28 am; edited 2 times in total
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Jun 04, 2010 10:56 pm   
 
Confirmed, but also you should be using " double-quotes and not the ' single quote.

Not sure why it doesn't work with a space in the key. Looks like something in the 3rd party SuperObject code, but I'll add it to the list.
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Fri Jun 04, 2010 10:58 pm   
 
The single quote was just for display purposes.
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Jun 04, 2010 11:02 pm   
 
Oops, yep you are right. Your #DELKEY command was fine.
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