develooper Front page | perl.perl6.language | Postings from July 2005

Re: Messing with the type heirarchy

Thread Previous | Thread Next
Ingo Blechschmidt
July 27, 2005 06:21
Re: Messing with the type heirarchy
Message ID:

Luke Palmer wrote:
> This was a passing proposal to allow supertype declarations in
> Haskell.  I'm referencing it here because it's something that I've had
> in the back of my mind for a while for Perl 6.  I'm glad somebody else
> has thought of it.
>     role Complex
>         does Object
>         contains Num
>     {...}

I've probably misunderstood you, but...:

    role Complex does Object {...}
    Num does Complex;
    # That should work and DWYM, right?


Linux, the choice of a GNU | Wissen ist Wissen, wo man es findet.  
generation on a dual AMD   | 
Athlon!                    | 

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About