Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Tue Aug 30, 2011 3:04 pm   

(Bug?) %concat resetting variables to AutoType
 
When I assign a concatenated string to a variable, it resets to AutoType, even if I had previously set it to string literal. I need this particular variable to be a string literal, because there will be @s in it (aardwolf uses the @ symbol for color codes) but I can't get them to stop expanding as if they were variable references, since they refuse to stay string literals. Simple test code:
Code:
test = %null
#call %vartype(test,3)
#show %vartype(test)
test = "abc"
#show %vartype(test)
test = "123"
#show %vartype(test)
test = %concat("abc","123")
#show %vartype(test)

produces the following output:
Code:
literal
literal
literal
auto


Is this a bug or am I just doing something wrong?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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