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

Multisubs and multimethods: what's the difference?

Thread Next
From:
Joshua Choi
Date:
March 1, 2006 20:09
Subject:
Multisubs and multimethods: what's the difference?
Message ID:
1141272570.9043.7.camel@localhost.localdomain
Kudos to all the Perl 6 mailing list.

What's the difference between
  multi sub infix:<..> ( Int $min, Int $max ) { ... }
and
  multi method infix:<..> ( Int $min, Int $max ) { ... }
?

And in the case there isn't one, what's the point of declaring if it's a
"sub" or "method"; why not just "multi" or something? Surely there won't
be multirules, multimacros, etc. Right?

Thanks to all,
Joshua Choi


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