Skip to content
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

Cannot precompile sub with params returning a proxy #3467

Closed
p6rt opened this issue Jul 31, 2014 · 5 comments
Closed

Cannot precompile sub with params returning a proxy #3467

p6rt opened this issue Jul 31, 2014 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 31, 2014

Migrated from rt.perl.org#122447 (status was 'open')

Searchable as RT122447$

@p6rt
Copy link
Author

p6rt commented Jul 31, 2014

From @FROGGS

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(|).

@p6rt
Copy link
Author

p6rt commented Oct 7, 2014

From @dwarring

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​:

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(|).

@p6rt
Copy link
Author

p6rt commented Oct 7, 2014

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 26, 2016

From @coke

On Tue Oct 07 11​:21​:19 2014, david.warring wrote​:

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

@p6rt p6rt added the precomp label Jan 5, 2020
@JJ
Copy link

JJ commented May 30, 2020

Yes. Closing.

@JJ JJ closed this as completed May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants