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 

Const command

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



Joined: 07 Nov 2006
Posts: 384
Location: Berlin

PostPosted: Sat Jan 12, 2008 4:10 pm    Post subject: Const command Reply with quote

Can we expect someday a Constant Variable command? This could help make code more secure, where variables should not be changed. Mostly, on globals could this help us.

For example a global used in another function cannot be determined. A constant value cannot be guaranteed. Sharing globals like the ones inside from AutoHotkey could be done that way very easily.

Code:
Const x := 10
x = 10 ; ERROR: Constant variables cannot be reset without const command.
Const x := 11 ; This is allowed.
Back to top
View user's profile Send private message Send e-mail
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