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

Owner: Nobody
Requestors: larry <larry [at] wall.org>
Cc:
AdminCc:

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



Subject: [BUG] WhateverCode loses topic inside given modifier
Date: Tue, 20 Oct 2015 18:11:12 -0700
To: rakudobug [...] perl.org
From: Larry Wall <larry [...] wall.org>
Download (untitled) / with headers
text/plain 192b
This works:

> p6 'given 10 { say (* + $_)(32) }'
42

but this doesn't:

> p6 'say (* + $_)(32) given 10'
Use of uninitialized value of type Any in numeric context  in whatevercode  at -e:1
32

RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 435b
On Tue, 20 Oct 2015 18:11:22 -0700, larry wrote: Show quoted text
> This works: >
> > p6 'given 10 { say (* + $_)(32) }'
> 42 > > but this doesn't: >
> > p6 'say (* + $_)(32) given 10'
> Use of uninitialized value of type Any in numeric context in whatevercode > at -e:1 > 32
Thank you for the report. This is now fixed. Fix: https://github.com/rakudo/rakudo/commit/1ee89b54074e80c Test: https://github.com/perl6/roast/commit/2f2998733a2d8132c


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