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

Numifying a Method returns number of multi candidates in Rakudo #2207

Closed
p6rt opened this issue Oct 4, 2010 · 5 comments
Closed

Numifying a Method returns number of multi candidates in Rakudo #2207

p6rt opened this issue Oct 4, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Oct 4, 2010

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

Searchable as RT78208$

@p6rt
Copy link
Author

p6rt commented Oct 4, 2010

From @masak

<TimToady> rakudo​: say +Method
<p6eval> rakudo 2ee5db​: OUTPUT«0â�¤Â»
<TimToady> that seems completely bogus to me
<Grimnir_> it prints out the contents of both
<jnthn> ...no warning?
* masak submits +Method rakudobug
<jnthn> rakudo​: multi foo() { }; multi foo($x) { }; say +&foo
<p6eval> rakudo 2ee5db​: OUTPUT«2â�¤Â»
<jnthn> ffs. :-)
* jnthn dies a bit more inside.
<ash_> +&method returns the number of multi's?
<jnthn> ash_​: I'm pretty sure it's not meant to in Perl 6. :-)
<ash_> it just does by chance? :p
<masak> not sure we have a ticket for this already.
<masak> I'm creating one Justin Case.
<jnthn> ash_​: Way back in the annals of history, somebody decided that
the obvious thing MultiSub should inherit from is...ResizablePMCArray.
<masak> jnthn​: that's... deplorable. :'(

To be clear, numification of a Method shouldn't yield anything of the
kind in Rakudo. Most likely, it should warn or die.

@p6rt
Copy link
Author

p6rt commented Oct 8, 2011

From @coke

On Mon Oct 04 13​:23​:30 2010, masak wrote​:

<TimToady> rakudo​: say +Method
<p6eval> rakudo 2ee5db​: OUTPUT«0â�¤Â»
<TimToady> that seems completely bogus to me
<Grimnir_> it prints out the contents of both
<jnthn> ...no warning?
* masak submits +Method rakudobug
<jnthn> rakudo​: multi foo() { }; multi foo($x) { }; say +&foo
<p6eval> rakudo 2ee5db​: OUTPUT«2â�¤Â»
<jnthn> ffs. :-)
* jnthn dies a bit more inside.
<ash_> +&method returns the number of multi's?
<jnthn> ash_​: I'm pretty sure it's not meant to in Perl 6. :-)
<ash_> it just does by chance? :p
<masak> not sure we have a ticket for this already.
<masak> I'm creating one Justin Case.
<jnthn> ash_​: Way back in the annals of history, somebody decided that
the obvious thing MultiSub should inherit from is...ResizablePMCArray.
<masak> jnthn​: that's... deplorable. :'(

To be clear, numification of a Method shouldn't yield anything of the
kind in Rakudo. Most likely, it should warn or die.

Then much better​:

17​:03 < [Coke]> rakudo​: say +Method
17​:03 <+p6eval> rakudo 33f1cf​: OUTPUT«Use of uninitialized value in
numeric
  contextâ�¤0â�¤Â»
17​:03 < [Coke]> rakudo​: multi foo() { }; multi foo($x) { }; say +&foo
17​:03 <+p6eval> rakudo 33f1cf​: OUTPUT«No applicable candidates found to
  dispatch to for 'Numeric'. Available candidates are​:â�¤​:
(Mu, Mu
  %_)â�¤â�¤ in method Numeric at src/gen/CORE.setting​:608â�¤
in sub
  prefix​:<+> at src/gen/CORE.setting​:1808â�¤ in block
<anon> at
  /tmp/0UbVWVrGDB​:1â�¤ in <anon> at /tmp/0UbVWVrGâ�¦

Closable with tests.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 8, 2011

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

@p6rt
Copy link
Author

p6rt commented Nov 12, 2011

From @tadzik

On Sat Oct 08 14​:04​:30 2011, coke wrote​:

Closable with tests.

Here you are​: e25f148

@p6rt
Copy link
Author

p6rt commented Nov 12, 2011

@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