develooper Front page | perl.perl6.language | Postings from April 2008

Re: Polymorphism and Representations (Was: Re: First look: AdvancedPolymorphism whitepaper)

Thread Previous | Thread Next
From:
John M. Dlugosz
Date:
April 29, 2008 12:34
Subject:
Re: Polymorphism and Representations (Was: Re: First look: AdvancedPolymorphism whitepaper)
Message ID:
2360-84015@sneakemail.com
TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote:
>
>    multi infix:<=> (Any $lhs, A $rhs)
>    {
>        $lhs.STORE($rhs.clone); # or .cow if that's not automatic
>    }
>
>
   $lhs.VAR.STORE.


My readings have been that = just copies the ref.  Unless it's a "value 
type" or "immutable" which just means that it doesn't matter.  I'll have 
to read up on that some more soon.

--John


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About