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
[].min and [].max think +Inf and -Inf (respectively) are spelled "undef" #416
Comments
From @masakFrom Rakudo r33221: $ perl6 -e'say [].min' $ perl6 -e'say [].max' <pmichaud> min of an empty list should be...? |
From @cspencerThe attached patch fixes the issues below. min/max on an empty list On Wed Nov 26 13:49:32 2008, masak wrote:
|
From @cspencermin-max-inf.patchIndex: src/builtins/any-list.pir
===================================================================
--- src/builtins/any-list.pir (revision 34202)
+++ src/builtins/any-list.pir (working copy)
@@ -246,7 +246,9 @@
result = $P0
goto loop
fail:
- result = 'undef'()
+ .local num failres
+ failres = "+Inf"
+ .return (failres)
done:
.return (result)
.end
@@ -288,7 +290,9 @@
result = $P0
goto loop
fail:
- result = 'undef'()
+ .local num failres
+ failres = "-Inf"
+ .return (failres)
done:
.return (result)
.end
|
The RT System itself - Status changed from 'new' to 'open' |
From @pmichaudOn Sun Dec 21 08:26:41 2008, cspencer wrote:
Applied in r34214, thanks! Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#60868 (status was 'resolved')
Searchable as RT60868$
The text was updated successfully, but these errors were encountered: