in reply to Re^5: Experimenting with Lvalue Subs
in thread Experimenting with Lvalue Subs
He is saying that it would make it impossible to do things like (in spirit)
local $foo->bar = 'baz';
ie dynamic scoping. If the sub was responsible for the actual assignment, this would be impossible because it can't know whether the assignment is scoped dynamically and because there is no obvious mechnism for undoing the assignment at the end of the block. If you require validating to go through a tied proxy object, all of this is trivial since all the existing language hooks work as expected.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Experimenting with Lvalue Subs
by BrowserUk (Patriarch) on Jan 25, 2005 at 00:31 UTC | |
by Aristotle (Chancellor) on Jan 25, 2005 at 01:23 UTC | |
by BrowserUk (Patriarch) on Jan 25, 2005 at 02:04 UTC | |
by Aristotle (Chancellor) on Jan 25, 2005 at 03:00 UTC | |
by BrowserUk (Patriarch) on Jan 25, 2005 at 03:39 UTC | |
|