Just curiousity. Reading about Javascript, I tried to translate the idea to Perl. There's been moments when I thought it would be a good idea, but I've invariably been wrong.
Re: "scope objects", the nearest Perl equivalent would be "local". If you were to put a localizing wrapper around a sub that used global names you'd be getting close to what JavaScript 1.2 does (I guess). But then the sub isn't a proper closure, the process is manual and any another subs called would also get the dynamic scope.
In reply to Re: Re: Rebinding closures, possible?
by bsb
in thread Rebinding closures, possible?
by bsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |