[perl #45859] [RFC][IMCC] clean up method syntax: bare word and quoted method names
Will Coleda via RT
parrotbug-followup at parrotcode.org
Thu Nov 13 15:26:56 UTC 2008
On Thu Oct 16 08:19:14 2008, coke wrote:
> On Thu, Oct 16, 2008 at 9:12 AM, Klaas-Jan Stol via RT
> <parrotbug-followup at parrotcode.org> wrote:
> > I think this ticket has been resolved by the decision that method
names
> > must be quoted (as stated in pdd19).
> >
> > I propose to close ticket.
> > kjs
>
> That decision doesn't correspond to reality, though:
>
> $ cat foo.pir
> .sub main :main
> $P1 = subclass 'String', 'kjs'
> $P1 = new 'kjs'
> $P1.hi()
> .end
>
> .namespace [ 'kjs' ]
>
> .sub 'hi' :method
> say "hi"
> .end
>
> $ ./parrot foo.pir
> hi
>
> Regards.
This now fails as desired in r32615; Resolving ticket, thanks to
chromatic for the delicate IMCC work.
(Language implementors, double check your languages.)
--
Will "Coke" Coleda
More information about the parrot-dev
mailing list