Perl6 RFC Librarian wrote:
> =head1 IMPLEMENTATION
>
> The tokenizer will have to watch for /\s[a-z_]\w*->/i. A following
> /[A-Z_]\w*\(\)/ indicates a class method call.
>
Don't forget about including "::" parsing in the class method name.
I register negative on this one, since there is no "$
> > I suggest that the requirement be:
> >
> > print "There are Dogs::->num_dogs() species of dogs.";
> >
> > I.e. use the unambiguous form of class method call.
>
> Uhhh... I never even knew that worked. With the exception of OO book
> authors, everyone's goin
On Mon, Sep 18, 2000 at 05:39:48PM +1100, Damian Conway wrote:
> I suggest that the requirement be:
>
> print "There are Dogs::->num_dogs() species of dogs.";
>
> I.e. use the unambiguous form of class method call.
Uhhh... I never even knew that worked. With the exception of OO book
a
> print "There are Dogs->num_dogs() species of dogs.";
>
> would interpolate as:
>
> print 'There are '.Dogs->num_dogs().' species of dogs.';
I suggest that the requirement be:
print "There are Dogs::->num_dogs() species of dogs.";
I.e. use the unambiguous form