| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Nice little variant compare gotcha |
| From: | Terry Ford <tmford at shaw dot ca> |
| Date: | Fri, 31 Dec 2004 12:10:13 -0800 |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <20041230213934 dot 081C36284FD at lists dot realsoftware dot com> <p061104afbdfa346f1218 at 192 dot 168 dot 1 dot 2> <3396e7e204123015082fd89aa5 at mail dot gmail dot com> <p06200700bdfa3eb9936a at [10 dot 0 dot 1 dot 11]> <7231169A-5B3F-11D9-93D0-003065F2C108 at shaw dot ca> <3C4CF408-5B56-11D9-89F2-0003931D7A4A at ljug dot com> |
On 31-Dec-04, at 10:03 AM, Brady Duga wrote: On Dec 31, 2004, at 7:20 AM, Terry Ford wrote:BTW, Rb finally succumbed to that one. 1+1 no longer = 11. We *won* that one!Well, sort of. As I recall, changing that led to all sorts of other problems. Basically, avoid variants if you can, and when you can't make sure you explicitly specify what type of data you expect to get out of it. Runtime oddities are no fun to debug on your users machine - make the compiler complain for you. Exactly. That thread went on far too long; and in the end, your point was well explained. Try not to mix apples and oranges whenever possible. Convert you data types before you process them and you'll have very few problems. Terry _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Total file count?, Charles Yeomans |
|---|---|
| Next by Date: | Re: Total file count?, Phil Mobley |
| Previous by Thread: | Re: Nice little variant compare gotcha, Brady Duga |
| Next by Thread: | running some feature-requests by this list first, Bowerbird |
| Indexes: | [Date] [Thread] [Top] [All Lists] |