TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

#LIST CLEAR behavior

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
nya



Joined: 25 Jun 2012
Posts: 39

PostPosted: Sun Mar 16, 2014 5:28 am    Post subject: #LIST CLEAR behavior Reply with quote

When using #LIST CLEAR on a variable that, itself, is a nested variable, instead of clearing it outright, it seems to revert it back to whatever variable it was set to prior to being a list. If it's not a list, then it just does nothing.

After that, if there's a variable with the same name as the deepest nested variable, that gets cleared. For example, #list {a.b.c} {clear} will clear the variable named c.

The below code should demonstrate the behavior of this bug pretty clearly:
Code:
#var {bar} {chimpanzee}
#var {foo.bar} {frog}
#var {foo.bar} {{1}{a}{2}{b}}
#var {foo.bar} {{1}{c}{2}{d}}
#showme {before}
#showme {foo = $foo};
#showme {bar = $bar};
#list {foo[bar]} {clear}
#showme {after}
#showme {foo = $foo};
#showme {bar = $bar};
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3844

PostPosted: Sun Mar 16, 2014 5:57 pm    Post subject: Reply with quote

Will put it on my todo list.

#var foo.bar {} is a functioning equivalent.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group