[squeak-dev] Re: intersect: when intsersects: is false

Louis LaBrunda Lou at Keystone-Software.com
Sun Jun 20 14:22:56 UTC 2010


On Sun, 20 Jun 2010 11:07:23 +0200, Joachim Geidel
<joachim.geidel at onlinehome.de> wrote:

>snip...
>One could just
>leave it as it is, because the precondition for answering a "correct"
>rectangle is that the receiver and the argument intersect. If they don't, the
>answer is undefined, which means that whatever is answered is correct in a
>mathematical sense.
>snip...

I urge some caution here.  If "whatever is answered is correct in a
mathematical sense" is true then returning any rectangle like (100 at 100)
corner: (150 at 150) would be correct, clearly that is not the case.  In
Smalltalk, nil is undefined, nil is probably the "correct" answer.
-----------------------------------------------------------
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com




More information about the Squeak-dev mailing list