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
Implement handling of Ordergin $by in Range.min and Range.max. #756
Comments
From @baceksrc/classes/Range.pir | 12 ++++++++++++ |
From @bacek61f6280bc9adf04116bf8eccf64a5cc2a12941f3.diffdiff --git a/src/classes/Range.pir b/src/classes/Range.pir
index 6b7eeb9..4cdb54f 100644
--- a/src/classes/Range.pir
+++ b/src/classes/Range.pir
@@ -137,11 +137,23 @@ just return a clone of the Range.
.namespace ['Range']
.sub 'max' :method
+ .param pmc by :optional
+ .param int has_by :opt_flag
+ if has_by goto have_by
.tailcall self.'to'()
+ have_by:
+ $P0 = self.'list'()
+ .tailcall $P0.'max'(by)
.end
.sub 'min' :method
+ .param pmc by :optional
+ .param int has_by :opt_flag
+ if has_by goto have_by
.tailcall self.'from'()
+ have_by:
+ $P0 = self.'list'()
+ .tailcall $P0.'min'(by)
.end
.sub 'minmax' :method
|
From @pmichaudOn Sat Mar 07 21:58:33 2009, bacek wrote:
Patch rejected. S03:2885 describes slightly different semantics for If the synopses are later modified so that Range.min and Range.max Thanks for submitting! Pm |
The RT System itself - Status changed from 'new' to 'open' |
@pmichaud - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#63716 (status was 'rejected')
Searchable as RT63716$
The text was updated successfully, but these errors were encountered: