Skip Menu |
Report information
Id: 69438
Status: resolved
Priority: 0/
Queue: perl6

Owner: moritz <moritz.lenz+perl [at] gmail.com>
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Defining a postcircumfix:<{ }> method causes unnecessary confusion in Rakudo
Date: Mon, 28 Sep 2009 12:09:16 +0200
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 459b
This be Rakudo 0331d6 inside Parrot r41527. $ cat file-exhibiting-the-problem class A { method postcircumfix:<{ }>($table) { } } { 1; } $ perl6 file-exhibiting-the-problem Confused at line 6, near "{\n 1;\n}" [...] Adding a semicolon between the two outermost blocks in the file makes the confusion go away. The point of this ticket, however, is that this shouldn't be necessary, since line-ending closing curlies have implicit semicolons.
Download (untitled) / with headers
text/plain 629b
On Mon Sep 28 03:09:50 2009, masak wrote: Show quoted text
> This be Rakudo 0331d6 inside Parrot r41527. > > $ cat file-exhibiting-the-problem > class A { > method postcircumfix:<{ }>($table) { > } > } > > { > 1; > } > > $ perl6 file-exhibiting-the-problem > Confused at line 6, near "{\n 1;\n}" > [...] > > Adding a semicolon between the two outermost blocks in the file makes > the confusion go away. The point of this ticket, however, is that this > shouldn't be necessary, since line-ending closing curlies have > implicit semicolons.
Seems to be fine in latest Rakudo; given to moritz++ for spectests. Thanks, Jonathan
Tested in t/spec/S06-operator-overloading/methods.t.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org