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: Thu Jun 17, 2010 1:20 pm   

[3.19f] BUG: %additem("something",$localvar)
 
%additem("something",$localvar) is using $localvar as both a local variable value and as the name of a regular variable to assign to.
Code:

<alias name="test1" id="315">
  <value>#local $intersection
#forall {a|b|c|d} {
  $intersection = %additem(%i,$intersection)
}
#show $intersection</value>
</alias>

This will correctly display the final value of $intersection, "a|b|c|d", but it will also create variables named "a", "a|b", and "a|b|c"
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Jun 17, 2010 4:37 pm   
 
Wow, that's definitely a weird one. 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