On 13 February 2013 22:55, Nicolas Cellier
<[email protected]> wrote:
> Rectangle>>intersects: has been changed recently (GuillermoPolito 2/8/2013)
>         rCorner x < origin x ifTrue: [ ^ false ].
>         rCorner y < origin y ifTrue: [ ^ false ].
>         rOrigin x > corner x ifTrue: [ ^ false ].
>         rOrigin y > corner y ifTrue: [ ^ false ].
>
> these inequalities have been transformed into <= and >=
> Can someone point me to the issue number documenting this change?
>

well, we ran into following issue:

(0@0 corner: 10@0) intersects: (0@0 corner: 100@100)

=> false

but:

(0@0 corner: 10@0) intersect: (0@0 corner: 100@100)
=> (0@0) corner: (10@0)

but:

(0@0 corner: 10@0) intersect: (0@0 corner: 100@100) ifNone: [ nil ]

=> nil


now, since i was on a crusade to replace all senders of #intersect:
with #intersect:ifNone: (for a good reason ;)
this inconsistency strikes us back..

So, i really wonder whether we should relax conditions in #intersects:
and change tests
appropriately, or keep them as before..
but then how to deal with the above?

> Nicolas

-- 
Best regards,
Igor Stasenko.

Reply via email to