On Wednesday, January 8, 2003, at 10:39  AM, Chris Dutton wrote:
I would ask, if it's possible to inherit from Array or Hash, is it possible to inherit from one which has a constrained storage type?

my WeirdHash is int Hash { ... }
Yes, I think that was tentatively confirmed a while back. But it would be spelled:

class WierdHash is Hash of int { ... }

such that:

my %h is WierdHash; # automatically stores ints!

my str %h is WierdHash; # but this is probably an error


MikeL



Reply via email to