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.