Skip Menu |
Report information
Id: 131412
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: kaisbe [at] protonmail.com
Cc:
AdminCc:

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



Subject: [BUG] Label.goto() not yet implemented
To: "rakudobug [...] perl.org" <rakudobug [...] perl.org>
From: Kais Bensalah <kaisbe [...] protonmail.com>
Date: Wed, 31 May 2017 13:46:17 -0400
Download (untitled) / with headers
text/plain 264b
Hello,

perl6 is showing "Label.goto() not yet implemented. Sorry.".

Further informations:
perl6 -v
This is Rakudo version 2016.12 built on MoarVM version 2016.12
implementing Perl 6.c.

Sent from ProtonMail, Swiss-based encrypted email.


Date: Thu, 1 Jun 2017 12:32:04 +0200
To: "Kais Ben Salah (via RT)" <perl6-bugs-followup [...] perl.org>
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
Subject: Re: [perl #131412] [BUG] Label.goto() not yet implemented
Download (untitled) / with headers
text/plain 845b
Show quoted text
> On 31 May 2017, at 19:53, Kais Ben Salah (via RT) <perl6-bugs-followup@perl.org> wrote: > > # New Ticket Created by Kais Ben Salah > # Please include the string: [perl #131412] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=131412 > > > > Hello, > > perl6 is showing "Label.goto() not yet implemented. Sorry.". > > Further informations: > perl6 -v > This is Rakudo version 2016.12 built on MoarVM version 2016.12 > implementing Perl 6.c.
Please elaborate on how you got this message? What you have reported now is akin to: “My car doesn’t have a direction indicator”. FWIW, if you were trying to execute the “goto” message on a Label object, the message is correct: that still isn’t implemented, even on a more recent version like 2017.05.
Download (untitled) / with headers
text/plain 139b
For further providing you with informations about how to reproduce this NYI bug, I've attached a perl script, that you can test perl6 with.
Subject: test2.pl
Download test2.pl
text/x-perl 90b
#!/usr/bin/perl6 my $i = 0; itr: $i++; goto itr if ($i < 10); say $i; #shall output 10
Download (untitled) / with headers
text/plain 130b
The attached script below, is meant for a Perl5 goto support, works fine - which means that Perl6 has missed a feature from Perl5.
Subject: test-perl5.pl
Download test-perl5.pl
text/x-perl 113b
#!/usr/bin/perl my $i = 0; itr: $i++; print "$i\n"; goto itr if ($i < 10); print "$i\n"; #shall output 10
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 799b
On Fri, 02 Jun 2017 09:53:58 -0700, kaisbe@protonmail.com wrote: Show quoted text
> For further providing you with informations about how to reproduce this NYI bug
Thank you for the report. It *is* known that goto is not yet implemented. That's what the error message is trying to tell you. Show quoted text
> which means that Perl6 has missed a feature from Perl5.
It's more difficult to implement it in Perl 6, because we have proper threads and stuff. I don't think think anyone is currently actively trying to implement it, so it may take a while before you'll see this feature. P.S.: you should upgrade your perl6. It's ancient. While you won't see goto in latest and greatest compiler, you'll get a whole ton of bug fixes and performance improvements. You can get the latest version at http://rakudo.org/downloads/star/


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