Bjarne,
> Thanx for the clarification. I hope I didn�t intimidate any
> one with my post. I just find it important to be clear on
> fundamentals when we go on to our different project issues.
Same here, although I am a bit scared of you now ;>
> >have been confused with a "symbol" data type being a
> "property" data type.
>
> For the record, property is not a data type.
But that's exactly what Kerry and I were saying...
Not that property is a data type, but that a symbol data type was confused
with a hypothetical data type - which caused this whole tangle in the first
place :)
> float, integer, object (including all kinds of lists), string
> and symbol (have i forgotten any??)
Lets see...
boolean (the culprit of this discussion)
image is also a data type,
-- <image:4f52f8>
although one might argue that an image is a subset of the object data type.
A cast member refernce would also, I imagine, be a data type
-- (member 1 of castLib 1)
(quick rummage through the online help...)
Oh yes.. believe it or not - a VOID!
And now for a little experiment...
put member ("back").image
-- <image:4f52f8>
put objectP(member("back").image)
-- 1
put member("back").image.ilk
-- #image
put member("back").ilk
-- #member
put castlib (1).ilk
-- #castLib
put marker("start").ilk
-- #integer
(???)
put (1).ilk
-- #integer
put sprite(1).ilk
-- #sprite
put [1, 2, 3].ilk
-- #list
put objectP([1, 2, 3])
-- 1
put ("Bjarne").ilk
-- #string
put (#property).ilk
-- #symbol
put (Void).ilk
-- #void
put (True).ilk
-- #integer
put (False).ilk
-- #integer
(Huh?)
goObj = script ("game parent").new()
put goObj.ilk
-- #instance
(Hmmm?)
put script ("game parent").ilk
-- #script
put member ("game parent").ilk
-- #member
timeOut("TimeOutTest").new(1000, #timeOutHandler)
put timeOut ("TimeOutTest").ilk
-- #timeout
Another interesting one is -
put member(1).media
-- (media 4f67ac)
put member(1).media.ilk
-- #media
And there seem to be more - but now I'm really confused: are these data
types, object types or what?
Have a look at this, from the lingo dictionary:
"The syntax ilk(object) returns a value indicating the type of an object. If
the object is a list, ilk(object) returns #list; if the object is a property
list, ilk(object) returns #propList.
The syntax ilk(object, type) compares the object represented by object to
the specified type. If the object is of the specified type, the ilk()
function returns TRUE. If the object is not of the specified type, the ilk()
function returns FALSE. "
[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!]