A little off topic I know but I really hope that at some point the Flash
Player extends it number handling to include byte, word, long etc. I hate
using int or uint when I know I really just need a byte or whatever.

 

It just pains me.

 

I suppose that's due to my machine code background, but it always feels so
wasteful.

 

Glenn Williams

tinylion development UK

 

 

www.flex-ria.com

www.tinylion.co.uk

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of EECOLOR
Sent: Saturday, May 17, 2008 11:51 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How to tell if variable is an int, uint, or a
Number?

 

I would recommend you to use the getQualifiedClassName method, it is a bit
less expensive than the describeType method.


Greetz Erik



On 5/16/08, Paul Whitelock <[EMAIL PROTECTED]> wrote:

Alrighty then, I filed a bug report since the following outputs "int":

var uintVar:uint = 5; trace(describeType(uintVar)[EMAIL PROTECTED]());

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ,
"Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> I think there is a conceptual distinction between the runtime type of an
> AS3 value and the compile-time type of a var or parameter that holds
> such a value.
> 
> 
> 
> The 'is' operator works on values. A value like 5 'is' both an int, a
> uint, and a Number because it is a legal value in the set of possible
> values for each of these types.
> 
> 
> 
> But I would expect a var declared as
> 
> 
> 
> var u:uint;
> 
> 
> 
> to report itself via describeType() as a uint, just like int and Number
> do. It seems like a bug that it doesn't.
> 
> 
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
> 
>

 

 

Attachment: Glenn Williams.vcf
Description: Binary data

Reply via email to