At 06:51 PM 3/26/2001 -0500, John Porter wrote:
>Dan Sugalski wrote:
> >
> > You're ignoring side-effects. The tied data may well be returned the same
> > every time it's accessed, but that doesn't mean that things aren't
> > happening behind the scenes.
>
>Like the :constant attribute on object methods in certain other languages.
>
>So, we could say, if :constant not on the sub, don't cache.
>
>As for :idempotent, I think sort() needs to assume the comparison sub
>is idempotent, rather than requiring such an attribute explicitly.

Assuming idempotency's fine, though I don't know that I'd go so far as to 
require it. I certainly wouldn't complain, though.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to