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


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Feb 24, 2007 3:58 am   

Variable autotype problem...
 
Is there a problem with variables setting autotypes to incorrect ones? Every time I put in a variable, it tends to go to String (expanded) instead of integer, and this creates a slight problem when some of my scripts require it to be read as an interger... In fact, some of my %evals and #MATH functions don't work correctly because of this... So, is this a known problem, or am I missing something?

Charneus
Reply with quote
Tech
GURU


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

PostPosted: Sat Feb 24, 2007 6:25 am   
 
Yes this is a known bug. The way around it to explicitly cast your variable to the one needed using the %int, %float or similar function.
_________________
Asati di tempari!
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Feb 24, 2007 6:44 am   
 
Thanks for the suggestion. I wasn't sure if it was something I was doing wrong, or if it was. I'll start using %int for it now. :)

Charneus
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