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
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Jun 19, 2010 4:09 am   

[3.20]BUG: #ADDKEY and %additem (different from my previous post)
 
Not the same as the previous post regarding #ADDITEM.

1. On command line for untitled session, type TestVar=%null;#LOOP 10 {#ADDKEY TestVar TestKey %additem(%random(1,10),%db(@TestVar,TestKey))};#SHOWDB @TestVar

Everything shows up as normal.

2. On command line, type TestVar=%null;#LOOP 10 {#ADDKEY TestVar TestKey %additem(%random(1,10),@TestVar.TestKey)};#SHOWDB @TestVar

It puts quotes around ".TestKey|first whatever".

3. On command line, type TestVar=%null;#LOOP 10 {#ADDKEY TestVar TestKey %additem(%random(1,10),TestVar.TestKey)};#SHOWDB @TestVar

It adds '.TestKey' as part of the value.

Charneus


Last edited by charneus on Sat Jun 19, 2010 4:54 am; edited 2 times in total
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Sat Jun 19, 2010 4:25 am   
 
Confirmed. It should be noted that this isn't an issue if the variable already exists.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Jun 19, 2010 4:57 am   
 
Rather, it doesn't happen if the variable is already populated as a database. You can have an empty variable and cases 2 and 3 will still fail, but if you do case 1, keep the variable, do case 2, and case 3, then it'll work properly. Thanks for bringing that up, though. I forgot to show to clear the variable first.

Charneus
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jun 21, 2010 4:25 pm   
 
Confirmed and added to 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