# New Ticket Created by  Klaas-Jan Stol 
# Please include the string:  [perl #45403]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=45403 >


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

Reply via email to