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

underscore in variable names

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



Joined: 04 Jan 2006
Posts: 7

PostPosted: Fri Jun 23, 2006 1:47 am    Post subject: underscore in variable names Reply with quote

When I use underscore in variable names tintin++ gets confused. I practically have to surround those variables with the {} to work properly.

Example code: this does not work as it should
Quote:
#var {num_ns} {0}
#var {num_ns} {$num_ns + 1}


This instead works:
Quote:
#var {num_ns} {0}
#var {num_ns} {${num_ns} + 1}


It is a bit confusing. IMHO there are two ways to go:
1) underscore should not affect variable names (preferred solution)
2) underscore is not allowed in variable names

(I'm usig TinTin++ Version 1.95.1 (Debian). So maybe it was already fixed)
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3844

PostPosted: Fri Jun 23, 2006 3:51 am    Post subject: Reply with quote

Quote:
1) underscore should not affect variable names (preferred solution)

Can't hurt, I'll add it for the next release. That however might be a while given tintin is quite stable and I have no big plans.

Quote:
2) underscore is not allowed in variable names

Everything is allowed when using braces.
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