AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Recognizing Expressions (3x)

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Ian



Joined: 15 Jul 2007
Posts: 1077
Location: Enterprise, Alabama

PostPosted: Wed May 07, 2008 3:48 am    Post subject: Recognizing Expressions (3x) Reply with quote

I just think this would be so much easier for all of us. I think it'd be cool to have ahk recognize things like 3x as 3*x or 3(x) as 3*x etc..
_________________
1,000 Posts achieved on Saturday April 26, 2008 1:45 am
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1271

PostPosted: Wed May 07, 2008 10:41 am    Post subject: Reply with quote

i think thats a silly idea, because then you cant have any variable called that. it would mean you would be greatly limited to the variable names you could use
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2359
Location: Australia, Qld

PostPosted: Wed May 07, 2008 11:22 am    Post subject: Reply with quote

I think multiplication is not used enough in the majority of scripts to justify adding a (somewhat obscure) shortcut for it.

Related thread:
Multiplication by juxtaposition: (Expression1)(Expression2)
Back to top
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 702

PostPosted: Wed May 07, 2008 7:19 pm    Post subject: Reply with quote

That could also be confused with the implicit string concatenation operator when a space is left between two variables in an expression
Code:
one = 1
msgbox % one one

_________________
My Home Thread
More Common Answers: 1. It's in the FAQ 2. Ternary ( ? : ) guide 3. Post code with [code][/code] tags
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group