RE: [Non-DoD Source] RE: flexjs init the int =0

2016-07-05 Thread Kessler CTR Mark J
Forgot about that. I'm just used to always initializing my ints/numbers to 0 or -1. -Original Message- From: Josh Tynjala [mailto:joshtynj...@gmail.com] Sent: Tuesday, July 05, 2016 8:10 AM To: dev@flex.apache.org Subject: [Non-DoD Source] RE: flexjs init the int =0 A N

RE: flexjs init the int =0

2016-07-05 Thread Josh Tynjala
t: Friday, July 01, 2016 7:46 PM > To: dev@flex.apache.org > Subject: Re: flexjs init the int =0 > > Yep. Looking into it. Are there any other types other than int and uint > that will need initialization? > > -Alex > > On 7/1/16, 1:38 PM, "jude" wrote:

RE: flexjs init the int =0

2016-07-05 Thread Kessler CTR Mark J
Number? -Mark -Original Message- From: Alex Harui [mailto:aha...@adobe.com] Sent: Friday, July 01, 2016 7:46 PM To: dev@flex.apache.org Subject: Re: flexjs init the int =0 Yep. Looking into it. Are there any other types other than int and uint that will need initialization? -Alex

Re: flexjs init the int =0

2016-07-03 Thread jude
in as3 if you sign an object to an int an error is thrown. in js the variable would be assigned to the object and would no longer be an int. so maybe, when the time comes, simply casting it as int would be enough. On Jul 3, 2016 1:50 AM, "Alex Harui" wrote: > > > On 7/1/16, 1:44 PM, "jude" wrote

Re: flexjs init the int =0

2016-07-03 Thread Harbs
We had a discussion a few months back entitled "[FlexJS]as in”. There were a number of suggestions how to handle int, but I don’t think anyone did anything there. On Jul 3, 2016, at 9:49 AM, Alex Harui wrote: > > > On 7/1/16, 1:44 PM, "jude" wrote: > >> ihzi is correct. to clarify, the com

Re: flexjs init the int =0

2016-07-02 Thread Alex Harui
On 7/1/16, 1:44 PM, "jude" wrote: >ihzi is correct. to clarify, the compiler should initialize integers to >zero when they are defined. and it should probably wrap any code that >assigns a value to an int with parseInt(). IMO, it should be easy to initialize integers to zero, but I'm concerned

Re: flexjs init the int =0

2016-07-01 Thread Alex Harui
>var i; // null, undefined or NaN > >therefore we need to initialize every integer as zero when it's defined. >On Jun 30, 2016 10:35 PM, "lizhi" wrote: > >> and i++ in as i=1 >> but js i= NaN >> >> >> >> -- >> View this message in c

Re: flexjs init the int =0

2016-07-01 Thread jude
>> but js i= NaN >> >> >> >> -- >> View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-init-the-int-0-tp53569p53570.html >> Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs init the int =0

2016-07-01 Thread jude
as i=1 > but js i= NaN > > > > -- > View this message in context: > http://apache-flex-development.247.n4.nabble.com/flexjs-init-the-int-0-tp53569p53570.html > Sent from the Apache Flex Development mailing list archive at Nabble.com. >

Re: flexjs init the int =0

2016-06-30 Thread lizhi
and i++ in as i=1 but js i= NaN -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-init-the-int-0-tp53569p53570.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

flexjs init the int =0

2016-06-30 Thread lizhi
as3 code var i:int the (i=0) but js code var i; the(i = NaN) so good js code is var i =0; -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-init-the-int-0-tp53569.html Sent from the Apache Flex Development mailing list archive at Nabble.com.