> In an expression, though, <Void> is considered to be equivalent of 0.

In my experience, not consistently.

I spent a couple days last year tracking down a bug caused by a
difference in the way Director on Windows and Mac treat <Void>.

There was a boolean compare, something like:

if someCondition then
  yada yada
end if

In some cases, someCondition could be <Void>. On the Mac, that boolean
evaluated to FALSE. On Windows, it evaluated to TRUE.

<Void> is <Void>. It's best to check for voidP, because you can't count
on Director treating void as 0 or as false.

Cordially,

Kerry Thompson

[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