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
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:
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
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
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
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
>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
>> 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.
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.
>
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.
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.
11 matches
Mail list logo