Tuncay
Joined: 07 Nov 2006 Posts: 384 Location: Berlin
|
Posted: Sat Jan 12, 2008 4:10 pm Post subject: Const command |
|
|
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. |
|
|