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
<Timbus> m: sub a {"foo"}; sub b {"bar"~callsame}; &a.wrap(&b); say a();
<camelia> rakudo-moar 90cd58: OUTPUT«foo»
<masak> um.
<Timbus> optimizer ate it
<masak> that would be my guess, too.
* masak submits rakudobug
<moritz> not a bug
* masak doesn't submit rakudobug
<moritz> iirc you need a special pragma if you want to replace lexials
<masak> oh.
<Timbus> that would, not be good for the test suite then
<Timbus> wait is that 'use soft;'
<moritz> m: use soft; sub a {"foo"}; sub b {"bar"~callsame};
&a.wrap(&b); say a();
<camelia> rakudo-moar 90cd58: OUTPUT«barfoo»
<moritz> Timbus: aye
<moritz> most of our optimizations rely on the fact the lexicals are
restricted in some ways at compile time
<masak> as they should.
<TimToady> seems to me that &a.wrap(&b); ought to fail if &a has been
hardened at CHECK time, and that's the bug that masak++ should submit
* masak submits &a.wrap(&b) rakudobug
Migrated from rt.perl.org#121991 (status was 'open')
Searchable as RT121991$
The text was updated successfully, but these errors were encountered: