Queue lists instance methods like makeString
, size
, sort
, sortWith
, stableSort
, stableSortWith
, toString
that it shouldn't really have.
rexx -e "say .Queue~methods(.nil)~allIndexes~sort~makeString(, ', ')~lower allindexes, allitems, append, at, delete, empty, first, firstitem, hasindex, hasitem, index, init, insert, isempty, items, last, lastitem, makearray, makestring, next, peek, previous, pull, push, put, queue, remove, removeitem, section, size, sort, sortwith, stablesort, stablesortwith, supplier, tostring, [], []=
Anonymous
All those that you mention are in the list produced by your code.
Is there some Object concept I'm missing?
The Queue class doesn't have its own implementation of e. g. sort(), which
is what .Queue~methods(.nil) reports.
Queue still allows for sorting, because it inherits sort() from the
OrderedCollection class.
The bug reported is an assumed wrong behavior of methods() which should
report less unique instance methods for Queue than it currently does.
No, these methods have been added to all of the ordered collections in 5.0.
methods(.nil) returns instance methods for the receiving class only, not
for inherited methods. etc.
OrderedCollection is fine, has sortWith() etc.
List is fine, hasn't got sortWith() etc.
Queue is wrong, has sortWith()etc.
removed methods makeString, sort, sortwith, stablesort, stablesortwith, tostring
documented method size() as a synonym for items()
Committed code fix with revision [r11214].
Documented method size() with revision [r11215].
Related
Commit: [r11214]
Commit: [r11215]