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

Owner: Nobody
Requestors: jdv79 <justin [at] devuyst.com>
Cc:
AdminCc:

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



Date: Mon, 23 Mar 2015 18:12:31 -0400
From: Justin DeVuyst <justin [...] devuyst.com>
Subject: [BUG] failure to bind to pointy block param
To: <rakudobug [...] perl.org>
Download (untitled) / with headers
text/plain 735b
Hello, Please see below. -jdv 18:04 < jdv79> m: my @a = 1; for @a -> $a is rw { $a := 2; } # that error isn't clear as to why; at least to me 18:04 <+camelia> rakudo-moar 9b5d4e: OUTPUTĀ«===SORRY!=== Error while compiling /tmp/QHdJhkWUo0?Cannot use bind operator with this left-hand side?at /tmp/QHdJhkWUo0:1?------> my @a = 1; for @a -> $a is rw { $a := 2?; } # that error isn't clear as to why; ?Ā» 18:05 < pmichaud> jdv79: good point... I don't know if the "error" here is because it's disallowed in Perl 6 or because Rakudo doesn't know how to do it yet. 18:05 < pmichaud> I suspect the error message should read "We don't know how to do this yet."
Still reproducible (2017.11, HEAD(5929887)).

Not sure if that's NYI or LTA. I'll mark as both.

On 2015-03-23 15:12:59, jdv79 wrote:
Show quoted text
> Hello,
>
> Please see below.
>
> -jdv
>
> 18:04 < jdv79> m: my @a = 1; for @a -> $a is rw { $a := 2; } # that
> error isn't clear as to why; at
> least to me
> 18:04 <+camelia> rakudo-moar 9b5d4e: OUTPUT«===SORRY!=== Error while
> compiling /tmp/QHdJhkWUo0?Cannot
> use bind operator with this left-hand side?at
> /tmp/QHdJhkWUo0:1?------> my @a = 1; for
> @a -> $a is rw { $a := 2?; } # that error isn't clear
> as to why; ?»
> 18:05 < pmichaud> jdv79: good point... I don't know if the "error" here
> is because it's disallowed in
> Perl 6 or because Rakudo doesn't know how to do it
> yet.
> 18:05 < pmichaud> I suspect the error message should read "We don't
> know how to do this yet."
>




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