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

Owner: Nobody
Requestors: FROGGS.de <email [at] froggs.de>
Cc:
AdminCc:

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



Subject: Cannot precompile sub with params returning a proxy
Download (untitled) / with headers
text/plain 550b
perl6-p --target=pir --output=scref.pir -e 'sub foo($bar) { Proxy.new( FETCH => sub (|) { }, STORE => sub (|) { } ) }' (ok) perl6-j --target=jar --output=scref.jar -e 'sub foo($bar) { Proxy.new( FETCH => sub (|) { }, STORE => sub (|) { } ) }' ===SORRY!=== Missing serialize function for REPR SCRef perl6-m --target=mbc --output=scref.moarvm -e 'sub foo($bar) { Proxy.new( FETCH => sub (|) { }, STORE => sub (|) { } ) }' ===SORRY!=== Missing serialize REPR function for REPR SCRef What is weird is that it works when I change the signature to foo(|).
Download (untitled) / with headers
text/plain 790b
I just tried that on perl6 version 2014.09-161-gc24537e. Seems to now work on all backends without errors. Tests have been added to S10-packages/precompilation.t On Thu Jul 31 03:00:11 2014, FROGGS.de wrote: Show quoted text
> perl6-p --target=pir --output=scref.pir -e 'sub foo($bar) { Proxy.new( > FETCH => sub (|) { }, STORE => sub (|) { } ) }' > (ok) > perl6-j --target=jar --output=scref.jar -e 'sub foo($bar) { Proxy.new( > FETCH => sub (|) { }, STORE => sub (|) { } ) }' > ===SORRY!=== > Missing serialize function for REPR SCRef > perl6-m --target=mbc --output=scref.moarvm -e 'sub foo($bar) { > Proxy.new( FETCH => sub (|) { }, STORE => sub (|) { } ) }' > ===SORRY!=== > Missing serialize REPR function for REPR SCRef > > What is weird is that it works when I change the signature to foo(|).
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 276b
On Tue Oct 07 11:21:19 2014, david.warring wrote: Show quoted text
> I just tried that on perl6 version 2014.09-161-gc24537e. Seems to now > work on all backends without errors. > > Tests have been added to S10-packages/precompilation.t
Can we close the ticket, then? -- Will "Coke" Coleda


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