Re: RFC 174 (v1) Parse C<func($obj, @args)> as C<func $obj (@args)>

[email protected] (Nathan Wiger) Thu, 31 Aug 2000 08:32:57 -0700
Newsgroups perl.perl6.language.subs
Message-ID <[email protected]>
Bart Lateur wrote:
> 
> Combine this with the RFC that bare filehandles must die, in favor of
> $FH filehandles, and you won't be able to make the distinction between
> 
>         print $HANDLE, $string;
> and
>         print $string, $string;

Sure you will! Please re-read the precedence rules from the RFC. 

   1. main::print

   2. CORE::print

   3. $ARG[1]->print
 
> In fact, it's already impossible to distinguish between
> 
>         print $HANDLE;
> and
>         print $string;
> 
> which essentially renders one of both illegal.

That's a different beast altogether. Maintaining the default filehandle
will always require a special CORE::print that sends stuff to the right
place, even with the current indirect object notation.

-Nate