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

Can't mix a postcircumfix:<( )> method into an Integer in Rakudo #2278

Closed
p6rt opened this issue Nov 27, 2010 · 5 comments
Closed

Can't mix a postcircumfix:<( )> method into an Integer in Rakudo #2278

p6rt opened this issue Nov 27, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Nov 27, 2010

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

Searchable as RT79866$

@p6rt
Copy link
Author

p6rt commented Nov 27, 2010

From @masak

<masak> rakudo​: my $answer = [] but role { method postcircumfix​:<( )>(
($arg) ) { say "You called me with argument $arg" } }; $answer(5)
<p6eval> rakudo : OUTPUT«You called me with argument 5␤»
<masak> rakudo​: my $answer = 42 but role { method postcircumfix​:<( )>(
($arg) ) { say "You called me with argument $arg" } }; $answer(5)
<p6eval> rakudo : OUTPUT«invoke() not implemented in class 'Integer'␤ [...]»
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Apr 5, 2012

From @jnthn

On Sat Nov 27 14​:23​:43 2010, masak wrote​:

<masak> rakudo​: my $answer = [] but role { method postcircumfix​:<( )>(
($arg) ) { say "You called me with argument $arg" } }; $answer(5)
<p6eval> rakudo : OUTPUT«You called me with argument 5␤»
<masak> rakudo​: my $answer = 42 but role { method postcircumfix​:<( )>(
($arg) ) { say "You called me with argument $arg" } }; $answer(5)
<p6eval> rakudo : OUTPUT«invoke() not implemented in class 'Integer'␤
[...]»
* masak submits rakudobug

Works now​:

my $answer = 42 but role { method postcircumfix​:<( )>(($arg) ) { say
"You called me with argument $arg" } }; $answer(5)
You called me with argument 5

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Apr 5, 2012

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

@p6rt
Copy link
Author

p6rt commented Apr 5, 2012

From @moritz

now tested in S14-roles/mixin.t.

@p6rt
Copy link
Author

p6rt commented Apr 5, 2012

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

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