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
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sat Jan 20, 2007 6:51 pm   

[1.24] Multiple Variables in Disable Class
 
This may be by design, but I think it's a bug. At the very least it's not what I expected.

If you create a variable in a disabled class multiple times that several variable instances are created rather than just updating the single instance as expected.

Create a class called test.
Then create the following aliases.

#alias test1 {#VAR testvar test1 {} test}
#alias test2 {#VAR testvar test2 {} test}

When the class is enable and you called test1 and test2 several times, you will only see one variable when you are finished, with the last value of what you entered. If the class is disabled and you called test1 and test2 several times you will see several variables there with that name and different values of test1 or test2 accordingly.
_________________
Asati di tempari!
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Jan 20, 2007 7:12 pm   
 
Confirmed. If you apply the fix I mention in the other thread, changing {} for _nodef, though, the bug vanishes. Very strange.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jan 22, 2007 6:33 pm   
 
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