Interval BUGS are well shared

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

Interval BUGS are well shared

Nicolas Cellier-3

After reviewing some bugs in Squeak Interval, I just wondered if VW
would do better.

Well, it does a little, except it shares at least this one:

(1 to: 3) = #(1 2 3).
(1 to: 3) hash = #(1 2 3) hash.

What did mother Smalltalk teach about equal and hash?

Try also this one:

(2 to: 1) first.
(2 to: 1) last.

This mathematically proves that an empty Interval is not empty.

The beauty of Interval>>last has to disappear versus trivial simplicity
of super last, since it won't speed anything up after being patched.

Last detail, both let me create (1 to: 10 by: 0).
Well nothing wrong about that, except that error will be delayed until
interval is used. My experience is that it's always better to open the
debugger on the real originator rather than on an indirect consequence.

Nicolas