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

Re: MMD as an object.

Thread Previous | Thread Next
From:
Luke Palmer
Date:
March 9, 2005 07:56
Subject:
Re: MMD as an object.
Message ID:
20050309155807.GC23412@navi.cx
Rod Adams writes:
> I wasn't intending it to be junctive. I was just noting that you needed 
> separate holders for subs and methods, since you shouldn't be able to 
> stuff a method into a multi sub.

Keep in mind that the two following definitions are equivalent:

    class A { method foo () {...} }
    multi sub foo (A $a) {...}

I think stuffing a method into a multi sub should be just fine.

Luke

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