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

"Must parameterize" Array of native array when precomp #3755

Closed
p6rt opened this issue Mar 24, 2015 · 5 comments
Closed

"Must parameterize" Array of native array when precomp #3755

p6rt opened this issue Mar 24, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Mar 24, 2015

Migrated from rt.perl.org#124162 (status was 'resolved')

Searchable as RT124162$

@p6rt
Copy link
Author

p6rt commented Mar 24, 2015

From @skids

Code that runs fine before precomp, breaks when an array of native
arrays is used after precomp.

$ cat /tmp/aoa.pm6
my @​f = $(array[uint32].new(0,1)), $(array[uint32].new(3,4));
$ PERL6LIB=/tmp/ perl6 -Maoa -e "1;"
$ perl6 --output=/tmp/aoa.pm6.moarvm --target=mbc /tmp/aoa.pm6
$ PERL6LIB=/tmp/ perl6 -Maoa -e "1;"
===SORRY!===
Must parameterize array[T] with a type before creating it
$

@p6rt
Copy link
Author

p6rt commented Mar 27, 2015

From @jnthn

On Mon Mar 23 17​:18​:34 2015, bri@​abrij.org wrote​:

Code that runs fine before precomp, breaks when an array of native
arrays is used after precomp.

$ cat /tmp/aoa.pm6
my @​f = $(array[uint32].new(0,1)), $(array[uint32].new(3,4));
$ PERL6LIB=/tmp/ perl6 -Maoa -e "1;"
$ perl6 --output=/tmp/aoa.pm6.moarvm --target=mbc /tmp/aoa.pm6
$ PERL6LIB=/tmp/ perl6 -Maoa -e "1;"
===SORRY!===
Must parameterize array[T] with a type before creating it
$

Test covering this is added in S10-packages/precompilation.t. It now passes on current MoarVM HEAD; JVM patches to come later.

@p6rt
Copy link
Author

p6rt commented Mar 27, 2015

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

@p6rt
Copy link
Author

p6rt commented Mar 28, 2015

From @jnthn

On Fri Mar 27 06​:08​:57 2015, jnthn@​jnthn.net wrote​:

On Mon Mar 23 17​:18​:34 2015, bri@​abrij.org wrote​:

Code that runs fine before precomp, breaks when an array of native
arrays is used after precomp.

$ cat /tmp/aoa.pm6
my @​f = $(array[uint32].new(0,1)), $(array[uint32].new(3,4));
$ PERL6LIB=/tmp/ perl6 -Maoa -e "1;"
$ perl6 --output=/tmp/aoa.pm6.moarvm --target=mbc /tmp/aoa.pm6
$ PERL6LIB=/tmp/ perl6 -Maoa -e "1;"
===SORRY!===
Must parameterize array[T] with a type before creating it
$

Test covering this is added in S10-packages/precompilation.t. It now
passes on current MoarVM HEAD; JVM patches to come later.

Fixed and test passing on JVM also now; resolving.

@p6rt
Copy link
Author

p6rt commented Mar 28, 2015

@jnthn - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Mar 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant