>
> arithmetic and logical operations in Lingo. As I said before, 0 = 0.0 =
> VOID. However, 0 !== 0.0 !== VOID.

Interestingly, this was not true in Director 8.  In D8, VOID <> 0.0, though it does = 
0.  This change introduced a bug in a program when I upgraded to D8.5 (an easy to 
locate and fix bug, thankfully).  This highlights one reason why we should not rely on 
any internal definition of
VOID, using voidP() instead (I also use direct comparison to VOID so it can be 
included in case statements).

Also interesting is that explicit integer() and float() casts leave VOID as VOID.


-Daniel


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to