in reply to Re^4: Experimenting with Lvalue Subs
in thread Experimenting with Lvalue Subs
How do you want to make
local $foo->bar = 'baz';
work, then? BrowserUk and I are struggling with that elsewhere in the thread, too.
Larry is right, if you do anything else than return an lvalue from the sub, then this is not really possible. As I said in the other subthread, I suppose validation could be handled inline anyway, but there really is no getting around the fact that an lvalue sub must return an lvalue if you want to support dynamically scoped assignments.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Experimenting with Lvalue Subs (trade-offs)
by tye (Sage) on Jan 25, 2005 at 04:24 UTC | |
by fergal (Chaplain) on Jan 25, 2005 at 06:38 UTC | |
by tye (Sage) on Jan 25, 2005 at 09:53 UTC | |
by fergal (Chaplain) on Jan 25, 2005 at 16:28 UTC |