At 03:44 PM 8/11/00 -0500, David L. Nicol wrote:
>If hashes normally had a sort method of null, they would work normally,
>but you could overload the sort method of any hash with
>
>methodoverloadoperator(%thehashinquestion, 'sort', {$a flubber $b})
>
>What is a better syntax for this?
Overload the nextkey function for hashes. Since a sorted hash would
probably have a different internal structure than a normal hash, you'll
likely just provide your own hash vtable that'd get used when someone said:
my AlphaHash %foo;
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk