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

is-approx multi that takes just two numbers never called #5295

Closed
p6rt opened this issue May 3, 2016 · 4 comments
Closed

is-approx multi that takes just two numbers never called #5295

p6rt opened this issue May 3, 2016 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 3, 2016

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

Searchable as RT128063$

@p6rt
Copy link
Author

p6rt commented May 3, 2016

From @zoffixznet

This code will fail with an error​:

use Test; is-approx 2+1e-16, 2;

The reason for that is that this multi isn't the one that gets called in this case​:
https://github.com/rakudo/rakudo/blob/b3d81696495df2bbb6e2c649db0ea75c66dffcd6/lib/Test.pm6#L226

The one that does get called is the one with all the named arguments, with their values set to default.

Relevant IRC conversation​: http://irclog.perlgeek.de/perl6/2016-05-03#i_12428759

@p6rt
Copy link
Author

p6rt commented Jun 11, 2016

From @zoffixznet

Proposed PR to fix this​: rakudo/rakudo#783

@p6rt
Copy link
Author

p6rt commented Jun 11, 2016

From @zoffixznet

Resolved by this commit​: rakudo/rakudo@bb165a5

@p6rt
Copy link
Author

p6rt commented Jun 11, 2016

@zoffixznet - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Jun 11, 2016
@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