Re: RFC 174 (v1) Parse C<func($obj, @args)> as C<func $obj (@args)>
[email protected] (Chaim Frenkel) 30 Aug 2000 19:36:33 -0400
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Message-ID | <[email protected]> |
Doesn't this move compile time work into run-time? <chaim> >>>>> "PRL" == Perl6 RFC Librarian <[email protected]> writes: PRL> This should be made to work correctly. The following order of function PRL> parsing should apply to Perl 6: PRL> 1. The current package should be checked for a function PRL> by that name (including any imported ones), consistent PRL> with current behavior. PRL> 2. Argument 1 should be checked to see if it is a valid PRL> object reference. If so, the method should be checked PRL> for existence as a member. PRL> 3. AUTOLOAD should be called. PRL> The only new step here is step #2. Notice that this does NOT override PRL> current-package functions. Only if a function is not found in the PRL> current package is the translation attempted. -- Chaim Frenkel Nonlinear Knowledge, Inc. [email protected] +1-718-236-0183