Manuscript (Case [Issue]22588) Kernel - Sorting an Interval raises an exception

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22588) Kernel - Sorting an Interval raises an exception

Pharo Issue Tracker
Manuscript Notification
avatar
Thomas Dupriez revised a previous entry on Case 22588: Sorting an Interval raises an exception:
Bug in Project:  Kernel: 1. Pharo Image  •  You are subscribed to this case
<code>Interval new sort</code> raises an "#< was sent to nil" exception
<code>(1 to: 5) sort</code> raises an "you can not store into an interval" exception

The Interval class inherits the default #sort: method of SequenceableCollection, which does not work for intervals. I am not sure the concept of sorting an Interval makes sense in the general case. I suggest implementing Interval>>sort: so that it raises an explicit exception: "you can not sort an interval" akin to what Interval>>at:put: does (it raises "you can not store into an interval").
Unless someone has an idea for what "sorting an Interval" could mean.
Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker