Bug 100375

Summary: [NEW PORT] devel/p5-Class-Multimethods-Pure: Method-ordered multimethod dispatch
Product: Ports & Packages Reporter: gslin
Component: Individual Port(s)Assignee: Cheng-Lung Sung <clsung>
Status: Closed FIXED    
Severity: Affects Only Me CC: gslin
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
p5-Class-Multimethods-Pure-0.11.shar none

Description gslin 2006-07-16 09:50:15 UTC
- Tinderbox log:

  http://tb.gslin.org/logs/4.11-FreeBSD-Perl5/p5-Class-Multimethods-Pure-0.11.log
  http://tb.gslin.org/logs/4.11-FreeBSD-Perl58/p5-Class-Multimethods-Pure-0.11.log
  http://tb.gslin.org/logs/5.5-FreeBSD/p5-Class-Multimethods-Pure-0.11.log
  http://tb.gslin.org/logs/6-STABLE/p5-Class-Multimethods-Pure-0.11.log

You can define multimethods with the "multi" declarator:

    use Class::Multimethods::Pure;

    multi collide => ('Bullet', 'Ship') => sub {
        my ($a, $b) = @_;  ...
    };

    multi collide => ('Ship', 'Asteroid') => sub {
        my ($a, $b) = @_;  ...
    };

It is usually wise to put such declarations within a BEGIN block, so
they behave more like Perl treats subs (you can call them without
parentheses and you can use them before you define them).

WWW:	http://search.cpan.org/dist/Class-Multimethods-Pure/

Generated with FreeBSD Port Tools 0.77
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-07-16 09:50:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clsung

clsung@ wants his PRs
Comment 2 Cheng-Lung Sung freebsd_committer freebsd_triage 2006-07-17 02:11:08 UTC
State Changed
From-To: open->closed

New port added. Thank You.