Re: C to Delphi set problems

From: Bob Richardson (bobrNO_at_SPAMhidbey.com)
Date: 03/12/04


Date: Fri, 12 Mar 2004 13:27:38 -0800


"AlanGLLoyd" <alanglloyd@aol.com> wrote in message
news:20040312015013.29815.00003666@mb-m21.aol.com...
> In article <CLudnVJufaYofs3dRVn-vw@whidbeytel.com>, "Bob Richardson"
> <bobrNO@SPAMhidbey.com> writes:
>
> >Isn't the lowest element of an empty set identical to something divided
by
> >zero? In other words, it's undefined, and should throw an exception.
> >
>
> There is no "lowest element" in an empty set.

This is my point. No one complains when an exception is thrown after you try
to divide by zero. It's the programmer's job to prevent such an occurrence,
and if it happens, then he'll get an exception error message. The same
could be said for trying to find the lowest element in a set that is empty.

What I was hoping to do with sets and the translated program could be
handled easily if Boolean operators would work with INT64.



Relevant Pages

  • Re: fexception handling in C
    ... > I am using C on linux and performed a 1/0 operation i.e a divide by ... > zero using integer variables/constants.it gives me a floating point ... Interesting that you got a floating-point exception ...
    (comp.lang.c)
  • Re: TRAP 0000 in OS2KRNL
    ... That was a 'divide by zero' error where it wasn't dividing by zero. ... The meaning of the exception is actually 'divide overflow' - it's just that ... Further proof that you are a troll, ...
    (comp.os.os2.bugs)
  • Re: Exceptions are not raised
    ... you're expecting a "divide by zero" exception, but it will not occur, ... dividing by zero is not an illegal operation. ... Dim num1, num2 As Short ...
    (microsoft.public.dotnet.general)
  • Re: TRAP 0000 in OS2KRNL
    ... That was a 'divide by zero' error where it wasn't dividing by zero. ... The meaning of the exception is actually 'divide overflow' - it's just that ... But shouldn't the system protect itself from such a crash by ...
    (comp.os.os2.bugs)
  • Re: C to Delphi set problems
    ... In other words, it's undefined, and should throw an exception. ... There is no "lowest element" in an empty set. ...
    (comp.lang.pascal.delphi.misc)