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

sub and method name overlap.

Thread Next
Rod Adams
March 10, 2005 13:27
sub and method name overlap.
Message ID:

    class Foo {
       method Bar () {...};

    sub Bar (Any $x) {...};
    my Foo $f;

    Bar $f;

Is that last line the same as:

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< 
Bar $f; > C< $f.Bar >? Or does it only work if there is no C< multi? sub 
bar > in sight?

-- Rod Adams

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About