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

Re: MMD as an object.

Thread Previous | Thread Next
Luke Palmer
March 9, 2005 07:56
Re: MMD as an object.
Message ID:
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.


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