On 9/18/07, Will Coleda via RT <[EMAIL PROTECTED]> wrote:
> On Wed Sep 12 08:33:04 2007, kjs wrote:
> > Hi,
> >
> > IMCC currently allows for C++ style method invocation (using a pointer as
> > invocant).
> >
> > So, while this works:
> >
> > .sub main
> >    $P0 = new 'Foo'
> >    $P0.'bar'()
> > .end
> >
> > You could also write:
> >
> > .sub main
> >   $P0 = new 'Foo'
> >   $P0->bar()
> > .end
> >
> > Or even:
> >
> > .sub main
> >   $P0 = new 'Foo'
> >   $P0->"bar"()
> > .end
> >
> > (note that both bareword and quoted names work).
> > This issue also touches upon the issue of bareword method names in general
> > (using dot notation), but that's besides the topic at this point (but it
> > /does/ need a decision sometime).
> >
> > The -> syntax is not very well documented (if at all?) and is rarely used
> > (maybe not at all?).
> >
> > In order to keep PIR syntax clean, I propose to remove the -> syntax for
> > method calls, as it is the same as the dot-notation.
> >
> > regards,
> > kjs
>
> I agree and see no issue with '->' being deprecated.
>
seconded.
~jerry

Reply via email to