Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Anonymous Multimethods

2 views
Skip to first unread message

Dave Whipp

unread,
Apr 16, 2003, 11:25:35 PM4/16/03
to perl6-l...@perl.org
In another post I tried to define anonymous multimethods: is this valid?

$multi = multi (Foo $foo: Int $i) {...}
| multi (Bar $bar) {...};

$multi(Foo.new, 7);
$multi(Bar.new);

Should I be using an injunction instead of a disjunction?

What would be the semantics of calling a junction of anonymous C<sub>s?
Does it spawn multiple threads?


Dave.

0 new messages