RE: [flexcoders] star (*) data type vs. Object

2007-05-25 Thread Ely Greenfield
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Thursday, May 24, 2007 11:09 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] star (*) data type vs. Object Hmm... don't dictionaries and array effectively return something of type * ? In th

RE: [flexcoders] star (*) data type vs. Object

2007-05-25 Thread Gordon Smith
m. - Gordon From: Gordon Smith Sent: Friday, May 25, 2007 1:15 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] star (*) data type vs. Object > don't dictionaries and array effectively return something of type * ? Yes. I tried var a:Array = [ undefined ];

Re: [flexcoders] star (*) data type vs. Object

2007-05-25 Thread Adam Pasztory
I'm glad my innocent question has sparked such a fascinating discussion. I have to admit, from a practical standpoint, it makes it simpler that Objects can no longer be set to undefined. In AS2, to prevent possible bugs caused by undefined/null ambiguity, I used to explicitly set my member varia

RE: [flexcoders] star (*) data type vs. Object

2007-05-25 Thread Gordon Smith
this but, in general, the player folks recommend using statically type code when it's possible to do so. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Thursday, May 24, 2007 11:09 AM To: flexcoders@yah

Re: [flexcoders] star (*) data type vs. Object

2007-05-25 Thread Troy Gilbert
Hmm... don't dictionaries and array effectively return something of type * ? In the case of pop(), etc., it wouldn't make sense for the array to return * because that would mean it _could_ return the value of undefined, which doesn't make sense. As Gordon points out, Object is stronger in that it

Re: [flexcoders] star (*) data type vs. Object

2007-05-24 Thread Johannes Nel
good post and i agree, dictionaries and arrays should return * On 5/23/07, Derek Vadneau <[EMAIL PROTECTED]> wrote: "* is just like Object" I couldn't disagree more. I really dislike that Object is referred to in the docs about *. There is an implication there that they are similar when the

RE: [flexcoders] star (*) data type vs. Object

2007-05-23 Thread Gordon Smith
rs@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derek Vadneau Sent: Wednesday, May 23, 2007 9:07 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] star (*) data type vs. Object It's not about getting around compile-time checking, which is what you'd be doing with Objec

Re: [flexcoders] star (*) data type vs. Object

2007-05-23 Thread Troy Gilbert
om] > On > Behalf Of Derek Vadneau > Sent: Wednesday, May 23, 2007 11:11 AM > To: flexcoders@yahoogroups.com > Subject: Re: [flexcoders] star (*) data type vs. Object > > > "* is just like Object" > > I couldn't disagree more. > > I really dislike

Re: [flexcoders] star (*) data type vs. Object

2007-05-23 Thread Derek Vadneau
nt: Wednesday, May 23, 2007 11:11 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] star (*) data type vs. Object "* is just like Object" I couldn't disagree more. I really dislike that Object is referred to in the docs about *. There is an implication there that they a

RE: [flexcoders] star (*) data type vs. Object

2007-05-23 Thread Peter Farland
oogroups.com Subject: Re: [flexcoders] star (*) data type vs. Object "* is just like Object" I couldn't disagree more. I really dislike that Object is referred to in the docs about *. There is an implication there that they are similar when they really aren't. This is a so

Re: [flexcoders] star (*) data type vs. Object

2007-05-23 Thread Derek Vadneau
"* is just like Object" I couldn't disagree more. I really dislike that Object is referred to in the docs about *. There is an implication there that they are similar when they really aren't. This is a sore spot for me everytime I use Array.pop() and Array.shift() in the Flash IDE. Both of thos

RE: [flexcoders] star (*) data type vs. Object

2007-05-18 Thread Peter Farland
See: http://livedocs.adobe.com/flex/2/langref/specialTypes.html#* The type * is just like Object but it can also store values that are undefined. Object can only store null. It's useful to determine whether a dynamic property actually exists on a type and just happens to be null, or whether it