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

Sub call resolution

Thread Next
From:
Luke Palmer
Date:
May 30, 2005 01:40
Subject:
Sub call resolution
Message ID:
7ca3f016050530013924377006@mail.gmail.com
Okay, I'd like to set myself straight.  Sanity check:

    bar($foo, $baz);   # looks for subs (lexical then package), and
falls back to MMD
    $foo.bar($baz);    # looks in ref($foo), then falls back to MMD

If this is correct, can we simplify the latter to mean "MMD only" ? 
Would there be a more symmetric MMD only form?

Luke

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About