Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: semi-OT: Lisp codeby hding (Chaplain) |
on Apr 01, 2003 at 18:37 UTC ( [id://247300]=note: print w/replies, xml ) | Need Help?? |
This is true. I was just trying to implement something as close as possible to what the original poster asked for with respect to his toy problem, which was recomputation of c whenever a or b was set. Of course it's be easy to modify things to use a cache; e.g. set c to nil (or some other convenient marker) whenever a or b is set and put a :before method on the method c that computes and sets the slot c it if it is nil.
In Section
Seekers of Perl Wisdom
|
|