Bug 100375 - [NEW PORT] devel/p5-Class-Multimethods-Pure: Method-ordered multimethod dispatch
Summary: [NEW PORT] devel/p5-Class-Multimethods-Pure: Method-ordered multimethod dispatch
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Cheng-Lung Sung
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-16 09:50 UTC by gslin
Modified: 2006-07-17 02:11 UTC (History)
1 user (show)

See Also:


Attachments
p5-Class-Multimethods-Pure-0.11.shar (3.03 KB, text/plain)
2006-07-16 09:50 UTC, gslin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.