Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 23, 2012, 04:25:17 PM

Pages: [1]   Go Down
  Print  
Author Topic: How to set a flag using a closure  (Read 178 times)
auweout
Pong! (the videogame) Master
*****
Offline Offline

Posts: 28


« on: November 10, 2011, 10:21:03 PM »

Hi guys, I would like to set a flag using a closure so that the internal value of that closure is preserved for me to retrieve it when different events occur. It is one of those times where lack of block scope will stop me from doing what I want to do unless I can set a boolean and preserve its value in a function.

Can someone suggest the best way of doing this?

thanks
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: