Re: RFC 251 (v1) Interpolation of class method calls
[email protected] (Damian Conway) Mon, 18 Sep 2000 18:27:35 +1100 (EST)
| Newsgroups | perl.perl6.language.objects |
|---|---|
| Message-ID | <[email protected]> |
> > 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 going to trip over that. Not if they read Camel III, which points out that Class::->method() is the *only* syntax that's guaranteed to work. > I think the case of /\b[A-Z][\w:]*->[A-Z][\w:]*(/ in a string is > infrequent enough that its not going to be a problem. Your probably right. But then again, /\b[A-Z][\w:]*::->[A-Z][\w:]*(/ is a string so infrequent that it's *never* going to be a problem ;-) Damian