in reply to Re^3: RFC: Object::Proxy (or somesuch)
in thread RFC: Object::Proxy (or somesuch)
Could you make this more general so you could make lazy expressions? So instead of getting a number back from 0 + $foo->bar you get back a value which will defer running ->bar until it is actually needed? Sort of like promises from E.
I dont think that would be possible due to the way that perl evaulates arguments.
Maybe you could just name your module Object::Realize::Later::Lighter if the improvement is that you avoid having a ::Lazy package.
Well, we also add a number of other features, including; handling overloaded ops, and handling direct access ($obj->{field} but not just hashs. Blessed arrays,scalars and subs as well.). In general the API and style is very different than Object::Realize::Later so I dont think it would fit.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: RFC: Object::Proxy (or somesuch)
by diotalevi (Canon) on Nov 19, 2004 at 19:51 UTC | |
by stvn (Monsignor) on Nov 19, 2004 at 20:20 UTC | |
by dragonchild (Archbishop) on Nov 19, 2004 at 19:53 UTC |