bsb has asked for the wisdom of the Perl Monks concerning the following question:
new_closure = new Closure(old_closure, new_scope_object);
Is there a way to do this or something similar in Perl?
(1)"rebind the captured lexical variables" is probably better stated as "prepend another symbol-table/hash to the list of searched symbol-table/hashes". This is different to Perl's closure handling and scoping.
(2) This, and other wacky dynamic features have been deprecated, for better or worse since then.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Rebinding closures, possible?
by PodMaster (Abbot) on Dec 16, 2003 at 08:05 UTC | |
|
Re: Rebinding closures, possible?
by Abigail-II (Bishop) on Dec 16, 2003 at 09:22 UTC | |
|
Re: Rebinding closures, possible?
by diotalevi (Canon) on Dec 16, 2003 at 19:31 UTC | |
|
Re: Rebinding closures, possible?
by adrianh (Chancellor) on Dec 16, 2003 at 12:17 UTC | |
by bsb (Priest) on Dec 16, 2003 at 23:25 UTC | |
|
Re: Rebinding closures, possible?
by thospel (Hermit) on Dec 16, 2003 at 16:14 UTC | |
|
Re: Rebinding closures, possible?
by etcshadow (Priest) on Dec 16, 2003 at 16:52 UTC | |
|
Re: Rebinding closures, possible?
by ysth (Canon) on Dec 16, 2003 at 22:13 UTC |