Re: sub and method name overlap.

2005-03-10 Thread Jonathan Scott Duff
On Thu, Mar 10, 2005 at 03:27:23PM -0600, Rod Adams wrote: > Given: > >class Foo { > method Bar () {...}; >} > >sub Bar (Any $x) {...}; >my Foo $f; > >Bar $f; > > > Is that last line the same as: >&Bar.($f); > or >$f.Bar; I don't see how it can be anything bu

sub and method name overlap.

2005-03-10 Thread Rod Adams
Given: class Foo { method Bar () {...}; } sub Bar (Any $x) {...}; my Foo $f; Bar $f; Is that last line the same as: &Bar.($f); or $f.Bar; Does it matter if we change C< sub Bar > to C< multi sub Bar >? Is there some form of implicit multi sub that gets created to make C<