Dear List,

I spend quite some time in tracking down a bug in Mondrian. I found it. The source of it stems from the following behavior in Pharo:
-=-=-=-=-=-=
(0...@0 corner: 1...@10) containsPoint: 5...@5.  => true
(1...@10 corner: 0...@0) containsPoint: 5...@5.  => false
-=-=-=-=-=-=

I find the latter a bit surprising. VW returns false as well. I would expect the second expression to return true.
There is also "(1...@0 corner: 0...@10) containsPoint: 5...@5. => false"

I looked in the Pharo mailing list archive, and apparently this hasn't been discussed yet.

The class Rectangle is central. Modifying it (either by making "(1...@10 corner: 0...@0) containsPoint: 5...@5" returns true or not permitting a rectangle "(1...@10 corner: 0...@0)" to be valid) may have some serious impact.

What do you think?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to