New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using a compiled (mbc) wrapping trait: Cannot invoke this object (REPR: Null, cs = 0) #4393
Comments
From perl6@6dof.xyzHow to reproduce: cdc:~/golf$ cat lib/Golf.pm6 unit module Golf; multi sub trait_mod:<is>(Routine $routine, :$wrapped!) { sub foo is export is wrapped { say 'OK' } cdc:~/golf$ panda-build cdc:~/golf$ PERL6LIB=$PWD/blib/lib perl6 -e 'use Golf; foo' cdc:~/golf$ PERL6LIB=$PWD/lib perl6 -e 'use Golf; foo' |
From perl6@6dof.xyzFor information, it segfaults -- if pre-compiled -- when modifying the +sub call-with(|args) { callwith(|args) } |
From @jnthnIt golfs to this in the module: constant &xxx = -> |args { nqp::say('in closure'); nqp::say(nqp::getlex('&say').^name); }; |
The RT System itself - Status changed from 'new' to 'open' |
From @hoelzroSee the attached files. If you run test.pl without a precompiled Example.pm, everything works fine (FALLBACK is added to the Example class and the die() is called). However, if you precompile Example.pm, you get the following error message: Cannot invoke this object (REPR: Null, cs = 0) |
From @hoelzro |
From @LLFournI've just run into this while trying to get old code working with precomp. These are all really the same thing I think: https://rt.perl.org/Public/Bug/Display.html?id=126818 I actually made an attempt at helping. A few instances of the bug can be LL |
From @hoelzroI think that this might be related to another bug I found: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=127089 On 2016-01-19 20:10:14, lloyd.fourn@gmail.com wrote:
|
Migrated from rt.perl.org#125634 (status was 'open')
Searchable as RT125634$
The text was updated successfully, but these errors were encountered: