Re: RFC 251 (v1) Interpolation of class method calls

2000-09-18 Thread Glenn Linderman
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 "$

Re: RFC 251 (v1) Interpolation of class method calls

2000-09-18 Thread Damian Conway
> > 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

Re: RFC 251 (v1) Interpolation of class method calls

2000-09-18 Thread Michael G Schwern
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

Re: RFC 251 (v1) Interpolation of class method calls

2000-09-17 Thread Damian Conway
> 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