Raku / old-issue-tracker

Tickets from RT
https://github.com/Raku/old-issue-tracker/issues
2 stars 1 forks source link

Overly eager check for type-ness of a method call with #5213

Open p6rt opened 8 years ago

p6rt commented 8 years ago

Migrated from rt.perl.org#127840 (status was 'new')

Searchable as RT127840$

p6rt commented 8 years ago

From @peschwa

16​:41 \< psch> m​: class A { method B { "meth b" } }; say B A​: 16​:41 \<+camelia> rakudo-moar 600eb5​: OUTPUT«meth b␤» 16​:41 \< psch> m​: class A { method B { "meth b" } }; class B { }; say B A​: 16​:41 \<+camelia> rakudo-moar 600eb5​: OUTPUT«===SORRY!=== Error while compiling /tmp/OPrlVUxZpe␤Two terms in a row␤at /tmp/OPrlVUxZpe​:1␤------> hod B { "meth b" } }; class B { }; say B⏏ A​:␤ expecting any of​:␤ infix␤ infix stopper␤ postfix␤ …»

The presence of a type with the same name as the method the user wants to call in this specific form does not seem as a sufficient argument to forbid using this form.

p6rt commented 8 years ago

From @zoffixznet

Still present in Rakudo version 2016.06-154-g55c359e built on MoarVM version 2016.06-9-g8fc21d5

.oO( This notation... Kill it! Kill it with fire! )