realbasic-nug
[Top] [All Lists]

Re: Division by zero

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Division by zero
From: Harrie Westphal <harriew@frontiernet.net>
Date: Sun, 3 Aug 2008 16:46:41 -0500
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <F87AA4C3-3AAF-4269-A847-8BF78821D537@mac.com>
References: <7D54B0A7-4499-4427-842B-DBDDEF7D9438@frontiernet.net> <p06240800c4ba417a1fa3@[10.0.1.8]> <418B1AB2-AF13-453F-A7CE-B6271578D055@inspiringapps.com> <BADDFE58-ACE8-4DB4-B434-E45E938DBE76@oxalyn.com> <B73CDE85-6C14-4320-96AB-A123C385D9F9@inspiringapps.com> <3290BE19-9439-424B-A5DC-662A62C30CBC@frontiernet.net> <4895DC57.30100@rpgportland.com> <p06240800c4bb8eb39db1@[10.0.1.8]> <AC667C70-9E78-4567-85A5-B207D099A4BC@tolisgroup.com> <1D05139C-9BFC-43BD-B2A5-6CCBE756B266@frontiernet.net> <202C32E1-479C-40E2-A456-0EF45F8D173C@comcast.net> <p06240802c4bbad49c909@[10.0.1.195]> <64F252DC-0E0F-43CA-A657-6690DD8C2B99@shaw.ca> <FEF652F0-7D83-43F3-A32E-09A844C3B3C7@tolisgroup.com> <582ECB0A-D312-4258-82E0-085EEAD42347@verizon.net> <A5C2277E-41FD-48C0-AF9C-4DC2CEFBA9C6@mac.com> <67BAC459-CC9E-46E2-B672-29A82941A77B@frontiernet.net> <5B23FBC7-BD69-4D6F-9BE0-81810892A30F@comcast.net> <F87AA4C3-3AAF-4269-A847-8BF78821D537@mac.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On Aug 3, 2008, at 4:26 PM, Arnaud Nicolet wrote:

If you check wether an integer has the value of 'DIVBYZERO', why not simply checking if it is 2147483648?


Because that number could be a proper value. Arnaud, I believe that there is only one thing that you and I can agree on and that is to agree that we disagree on this subject. In my mind I cannot for the life of me understand your fear of having the compiler raise an exception for dividing by zero like it ""automatically" does for array bounds. It appears that you cannot understand why I think it should be done. Don't fret, seems like, at least in the way of respondents, that there are a lot more people taking your side on this issue.

You and I will both hopefully remember to check every divisor for zero so that this never becomes an issue in our code. Personally I no longer write code other than for myself and friends so I have no consequences to worry about should I once again prove myself human and screw up. Yeah, my friend may cuss at me, but more than likely, somewhere along the line I have been called worse. ;-)

=== A Mac addict in Tennessee ===


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>