in reply to Some trouble with closures
I'm not sure anyone can answer your question without seeing your code and your explanation of what you're trying to do. From what I can gather, the closure is working exactly as designed. If you find yourself trying to reset the value of a closed-over lexical from an object constructor, you're in for a world of pain. Use an object attribute for object-specific data.
|
|---|