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

doing 'nextwith' should die when there is no matching candidate #1345

Closed
p6rt opened this issue Oct 6, 2009 · 7 comments
Closed

doing 'nextwith' should die when there is no matching candidate #1345

p6rt opened this issue Oct 6, 2009 · 7 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 6, 2009

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

Searchable as RT69608$

@p6rt
Copy link
Author

p6rt commented Oct 6, 2009

From @masak

<masak> rakudo​: class A { multi method foo() { say "foo1" }; multi
method foo($x) { say "foo2"; nextwith() } }; A.new.foo(42)
<p6eval> rakudo f845cc​: OUTPUT«foo2␤Null PMC access in isa()␤in method
A​::foo [...]
<masak> mwhahaha.
* masak submits rakudobug
<masak> rakudo​: class A { multi method foo($x) { say "foo2";
nextwith() } }; A.new.foo(42)
<p6eval> rakudo f845cc​: OUTPUT«foo2␤Null PMC access in isa()␤in method
A​::foo [...]
<jnthn> huh, it blows up when there's nowhere to defer to?
<jnthn> ouch.
<masak> jnthn​: but in the first example, isn't there somewhere to defer to?
<jnthn> masak​: Very debatable.
<masak> why?
<masak> because it isn't in the original list of candidates?
<jnthn> Right.
<masak> understood.
<jnthn> And if we decide to re-generate the list, we get ourselves
into even more "fun".
* masak shudders
<jnthn> I still need to write a mail to p6l on that issue.
<jnthn> And try and get a design decision.

@p6rt
Copy link
Author

p6rt commented Mar 24, 2010

From @moritz

The Null PMC Access is gone, but now it just does nothing, instead of
dying (as I would assume it should).

A test for that can be found in t/spec/S12-methods/defer-next.t.

So I'm handing this ticket back to jnthn++

@p6rt
Copy link
Author

p6rt commented Mar 24, 2010

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

@p6rt
Copy link
Author

p6rt commented Sep 11, 2011

From @bbkr

NOM

bbkr​:nom bbkr$ ./perl6 -e 'class A { multi method foo() { say "foo1" };
multi method foo($x) { say "foo2"; nextwith() } }; A.new.foo(42)'
foo2

@p6rt
Copy link
Author

p6rt commented Sep 11, 2011

From @bbkr

Also mentioned test file is passing.

I think it can be closed, but I do not want to steal ticket..

@p6rt
Copy link
Author

p6rt commented Sep 29, 2011

From @jnthn

On Sun Sep 11 06​:18​:58 2011, bbkr wrote​:

Also mentioned test file is passing.

I think it can be closed, but I do not want to steal ticket..

Closing it; thanks.

/jnthn

@p6rt
Copy link
Author

p6rt commented Sep 29, 2011

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

@p6rt p6rt closed this as completed Sep 29, 2011
@p6rt p6rt added the Bug label Jan 5, 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

1 participant