> Now wait a minute. 0 and VOID are *not* the same--at least they shouldn't be.

Director's automatic typecasting can be a little mysterious. For example,

-- Welcome to Director --
a = VOID
b = 0
c = EMPTY

put a = b
-- 1
put a = c
-- 0
put b = c
-- 0
put value(a) = value(b)
-- 1
put value(a) = value(c)
-- 1
put value(b) = value(c)
-- 1
put integer(b)
-- 0
put integer(c)
-- <Void>

so to be certain, you need to check the type as well - something like

  if (a.ilk = b.ilk) and (a = b) then


Luke

-- 

Luke Wigley
Multimedia Director/Producer
Mecca Medialight Pty Ltd

Mecca Medialight:                       Medialight Sound Studio:
111 Moor Street                         1 Bakehouse Lane
Fitzroy, Vic. 3065                      North Fitzroy, Vic. 3068
Tel +613 9416 2033                      Tel +613 9416 2033
Fax +613 9416 2055                      Fax +613 9416 2055

www.medialight.com.au
__________________________________________________________________________



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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