| View previous topic :: View next topic |
| Would This be useful |
| Yes |
|
80% |
[ 4 ] |
| No |
|
0% |
[ 0 ] |
| Mabey so |
|
20% |
[ 1 ] |
|
| Total Votes : 5 |
|
| Author |
Message |
philz
Joined: 05 Jun 2007 Posts: 89 Location: USA
|
Posted: Mon Aug 04, 2008 4:52 pm Post subject: Functions assuming all variables static |
|
|
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 |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 1390 Location: The Interwebs
|
|
| Back to top |
|
 |
|