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.
In reply to Re: Some trouble with closures
by chromatic
in thread Some trouble with closures
by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |