On 8/5/16, 8:05 AM, "Harbs" wrote:
>I just checked and Number(obj) is equivalent to Number(obj.valueOf())
>
>Like so:
>var a = {valueOf : function(){return "5"},toString:function(){return "6”}}
>
>Number(a) //5
>Number(a.valueOf()) //5
>Number(a.toString()) //6
>
>So valueOf() needs to return a
Hi,
I've gone through a list about the examples Chris made while he was doing the
Maven work. I've improved them and they are ready to be tested. Both JS and SWF
versions should work nearly identically except perhaps some styling differences.
Let us know what your results are and thanks for the
I just checked and Number(obj) is equivalent to Number(obj.valueOf())
Like so:
var a = {valueOf : function(){return "5"},toString:function(){return "6”}}
Number(a) //5
Number(a.valueOf()) //5
Number(a.toString()) //6
So valueOf() needs to return a value that Number will properly accept.
Harbs
On second thought, this is probably wrong.
Number(xml) is probably enough as Number should call toString() and deal with
all number types correctly.
On Aug 5, 2016, at 5:42 PM, Harbs wrote:
> If it knows it’s being assigned to a Number, I think it should call
> valueOf(), or possibly(Number(x
For cases where the compiler knows that XML is being assigned to a string, it
should add toString().
If it knows it’s being assigned to a Number, I think it should call valueOf(),
or possibly(Number(xml.valueOf())
There will likely be cases where the compiler will not know the types that the
X
I have not spent time thinking about this, but the compiler generally
knows the destination type. The compiler is going to have to learn when
to inject coercion code where AS would do an implicit conversion that JS
won't.
So fundamentally: what does XML valueOf do in AS? The XML JS
implementatio
HI,
> Perhaps I should simply contact the guy and ask if we would change the
> license ;-)\
No need. Apache/BSD/MIT is fine it’s the fine details that matter.
Justin
Perhaps I should simply contact the guy and ask if we would change the license
;-)
Chris
Von: Justin Mclean
Gesendet: Freitag, 5. August 2016 15:14:44
An: dev@flex.apache.org
Betreff: Re: Github place for non Apache Flex stuff?
Hi,
> @Justin ... if there is a
Hi,
> @Justin ... if there is a project like "FlexORM" that is MIT licensed (even
> if the website claims this and I couldn't find a single mention of this in
> the sources), could I simply add a repo to flex-extras and even do releases
> of it?
Flex extra is free to do what ever it wants, go
I implemented this locally and the idea works pretty well for the most part.
We still need to do toString() when possible because of edge cases.
For example: stringFromXmlList1 == stringFromXmlList2 fails because the
Javascript engine does not try to convert them (correctly) to primitive values.
flex-extras is not affiliated (directly) with Apache, so we could do what we
want there without worrying about all the legal nitty-gritty.
That’s why I created it…
If we'd want to bring it into the official Apache repo at some point, we’d have
to do the legal vetting then.
On Aug 5, 2016, at 3
Ah ok ... cause I have become committer in the JBurg project and could initiate
releases if there were problems with it ;-)
@Justin ... if there is a project like "FlexORM" that is MIT licensed (even if
the website claims this and I couldn't find a single mention of this in the
sources), could
No good reason. I had thought at one point that it might be a good place for it.
We can remove it.
On Aug 5, 2016, at 2:46 PM, Christofer Dutz wrote:
> Thanks for that :-)
>
>
> By the way, why is there jburg.jar in there? I did release a new version a
> while ago to Maven Central ...
>
>
Thanks for that :-)
By the way, why is there jburg.jar in there? I did release a new version a
while ago to Maven Central ...
Chris
Von: Harbs
Gesendet: Freitag, 5. August 2016 13:28:05
An: dev@flex.apache.org
Betreff: Re: Github place for non Apache Flex stu
I set this up a while back:
https://github.com/flex-extras
I just sent you an invite.
Harbs
On Aug 5, 2016, at 1:56 PM, Christofer Dutz wrote:
> Hi,
>
>
> I remember recently someone was talking about creating an Github account for
> locating non Apache Flex stuff. I am currently reviving s
Hi,
I remember recently someone was talking about creating an Github account for
locating non Apache Flex stuff. I am currently reviving several little projects
and think it would be good to do that publically. So If we had something like
that I could for example put that sort of stuff there.
I’m thinking that I should implement valueOf() for XML like this:
var str:String = this.toString();
var asInt:int = parseInt(str);
if(asInt.toString() == str)
return asInt;
var asFloat:Number = parseFloat(str);
if(asFloat.toString() == str)
return asFloat;
return str;
Thi
17 matches
Mail list logo