Navigation Menu

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

Curried role compose fails in precompiled modules #2916

Closed
p6rt opened this issue Oct 13, 2012 · 5 comments
Closed

Curried role compose fails in precompiled modules #2916

p6rt opened this issue Oct 13, 2012 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Oct 13, 2012

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

Searchable as RT115240$

@p6rt
Copy link
Author

p6rt commented Oct 13, 2012

From @moritz

(submitting on behalf of skids, who has problems reaching rakudobug by
email)

When a parametric role is curried it works fine straight from source,
but when the role has been precompiled into a module, a parrot
error is thrown​:

cat mod2.pm6
role Foo [ ] { }; role Bar does Foo[] { }
$ PERL6LIB="." perl6 -e 'use mod2; class C does Bar { };'
$ PERL6LIB="." perl6 --target=pir --output=mod2.pir mod2.pm6
$ PERL6LIB="." perl6 -e 'use mod2; class C does Bar { };'
===SORRY!===
flattened parameters must be a hash or array
$

http://irclog.perlgeek.de/perl6/2012-10-13#i_6059103

13​:49 skids jnthn​: any thoughts on https://gist.github.com/3882578 ? #
Apologies of this is a dup line, IRC flapped.
13​:49 jnthn skids​: looking
13​:50 skids​: urgh, that looks problematic.
13​:50 Please Rakudo-bug it, I'll have a look.
13​:52 skids ok, will do.
13​:52 jnthn++
13​:52 jnthn I'm gonna be doing a bunch of work on pre-comp and so on
soonish (automatic pre-comp and so on)

@p6rt
Copy link
Author

p6rt commented Oct 24, 2012

From @jnthn

On Sat Oct 13 07​:12​:13 2012, moritz wrote​:

(submitting on behalf of skids, who has problems reaching rakudobug by
email)

When a parametric role is curried it works fine straight from source,
but when the role has been precompiled into a module, a parrot
error is thrown​:

cat mod2.pm6
role Foo [ ] { }; role Bar does Foo[] { }
$ PERL6LIB="." perl6 -e 'use mod2; class C does Bar { };'
$ PERL6LIB="." perl6 --target=pir --output=mod2.pir mod2.pm6
$ PERL6LIB="." perl6 -e 'use mod2; class C does Bar { };'
===SORRY!===
flattened parameters must be a hash or array
$

http://irclog.perlgeek.de/perl6/2012-10-13#i_6059103

13​:49 skids jnthn​: any thoughts on https://gist.github.com/3882578 ? #
Apologies of this is a dup line, IRC flapped.
13​:49 jnthn skids​: looking
13​:50 skids​: urgh, that looks problematic.
13​:50 Please Rakudo-bug it, I'll have a look.
13​:52 skids ok, will do.
13​:52 jnthn++
13​:52 jnthn I'm gonna be doing a bunch of work on pre-comp and so on
soonish (automatic pre-comp and so on)

Fixed now; tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Oct 24, 2012

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

@p6rt
Copy link
Author

p6rt commented Oct 7, 2014

From @dwarring

I've added tests for this ticket to S10-packages/precompilation.t.

On Wed Oct 24 08​:43​:42 2012, jnthn@​jnthn.net wrote​:

On Sat Oct 13 07​:12​:13 2012, moritz wrote​:

(submitting on behalf of skids, who has problems reaching rakudobug by
email)

When a parametric role is curried it works fine straight from source,
but when the role has been precompiled into a module, a parrot
error is thrown​:

cat mod2.pm6
role Foo [ ] { }; role Bar does Foo[] { }
$ PERL6LIB="." perl6 -e 'use mod2; class C does Bar { };'
$ PERL6LIB="." perl6 --target=pir --output=mod2.pir mod2.pm6
$ PERL6LIB="." perl6 -e 'use mod2; class C does Bar { };'
===SORRY!===
flattened parameters must be a hash or array
$

http://irclog.perlgeek.de/perl6/2012-10-13#i_6059103

13​:49 skids jnthn​: any thoughts on https://gist.github.com/3882578 ? #
Apologies of this is a dup line, IRC flapped.
13​:49 jnthn skids​: looking
13​:50 skids​: urgh, that looks problematic.
13​:50 Please Rakudo-bug it, I'll have a look.
13​:52 skids ok, will do.
13​:52 jnthn++
13​:52 jnthn I'm gonna be doing a bunch of work on pre-comp and so on
soonish (automatic pre-comp and so on)

Fixed now; tagging testneeded.

/jnthn

@p6rt p6rt closed this as completed May 15, 2015
@p6rt
Copy link
Author

p6rt commented May 15, 2015

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

@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant