AutoHotkey Community

It is currently May 26th, 2012, 9:34 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: . in variable names
PostPosted: July 27th, 2005, 3:11 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2543
Hi Chris,

I was thinking of creating a couple functions for working with structures to hopefully simplify things a bit. Would it be possible to allow the . character in variable names if it wouldn't conflict with other plans you may have for this character?

Struct.value := Please


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2005, 5:30 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
The "." character was specifically reserved for possible use with structures or methods. To allow for these features in the future, it seems best not to allow "." as a generic character in variable names. :(


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2005, 3:12 pm 
Does that mean that there are planned enhancements for using structures?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 28th, 2005, 9:40 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Not specifically, but since I already regret allowing question marks in variable names, it seems best to reserve it.

The question mark might still be "overloaded" someday as a ternary operator, which is a miniature "if-then" inside an expression. For example:

FoundPosition := InStr(Haystack, Needle, UseGlobalCaseSense ? GlobalCaseSense : LocalCaseSense)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group