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 

Functions assuming all variables static

 
Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  

Would This be useful
Yes
80%
 80%  [ 4 ]
No
0%
 0%  [ 0 ]
Mabey so
20%
 20%  [ 1 ]
Total Votes : 5

Author Message
philz



Joined: 05 Jun 2007
Posts: 89
Location: USA

PostPosted: Mon Aug 04, 2008 4:52 pm    Post subject: Functions assuming all variables static Reply with quote

Having this functionality would be the coolest thing ever.

I wish that this would be valid code

Code:

somefunction(somevariable) {
   static
   returns := somevariable
   if somevariable = %remember%
      Msgbox OMG I remember that
   Else
      Msgbox Huh.  What was that???
   remember := returns
   return returns
}


I know it isn't nessesary to assume all variables static in this instance but it would be nice to have.

PRETTY PLEASE WITH A CHERRY ON TOP
Back to top
View user's profile Send private message Send e-mail
Krogdor



Joined: 18 Apr 2008
Posts: 1390
Location: The Interwebs

PostPosted: Mon Aug 04, 2008 5:32 pm    Post subject: Reply with quote

Lexikos' Custom AHK Build contains this functionality Smile
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
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