You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<lizmat> S04:1454 states "These have the advantage of passing the
variable in question into the closure as its topic"
<lizmat> I wonder what that would mean for cases such as
<lizmat> my @a will begin { say $_.WHAT } # Array ?
<masak> r: my @a; BEGIN { say @a.WHAT }
<camelia> rakudo 4a608a: OUTPUT«(Array)»
* masak nods
<lizmat> r: my @a; $_ := @a; say $_.WHAT # more like this, I guess
<camelia> rakudo 4a608a: OUTPUT«(Array)»
<lizmat> r: my @a will begin { say $_.WHAT } # Array ?
<camelia> rakudo 4a608a: OUTPUT«(Mu)»
<masak> I don't see why it shouldn't be (Array)
* masak submits rakudobug
<lizmat> masak: don't bother, it's NYI
<lizmat> one of the blockers I'm banging my head against
<masak> ok, submitting as [NYI] instead of [BUG] :)
The last two evaluations should both print '(Array)'.
16:02 <PerlJam> m: my @a will begin { say $_.WHAT }
16:02 <+camelia> rakudo-moar 5daff4: OUTPUT«(Array)»
There's also a test in S04-declarations/will.t
On Thu Aug 01 01:33:35 2013, masak wrote:
<lizmat> S04:1454 states "These have the advantage of passing the
variable in question into the closure as its topic"
<lizmat> I wonder what that would mean for cases such as
<lizmat> my @a will begin { say $_.WHAT } # Array ?
<masak> r: my @a; BEGIN { say @a.WHAT }
<camelia> rakudo 4a608a: OUTPUT«(Array)»
* masak nods
<lizmat> r: my @a; $_ := @a; say $_.WHAT # more like this, I guess
<camelia> rakudo 4a608a: OUTPUT«(Array)»
<lizmat> r: my @a will begin { say $_.WHAT } # Array ?
<camelia> rakudo 4a608a: OUTPUT«(Mu)»
<masak> I don't see why it shouldn't be (Array)
* masak submits rakudobug
<lizmat> masak: don't bother, it's NYI
<lizmat> one of the blockers I'm banging my head against
<masak> ok, submitting as [NYI] instead of [BUG] :)
The last two evaluations should both print '(Array)'.
Migrated from rt.perl.org#119109 (status was 'resolved')
Searchable as RT119109$
The text was updated successfully, but these errors were encountered: