RE: [royale-asjs] branch feature/revert-refactor updated: Fixes #261. Untyped members need to be surrounded with quotes.

2018-06-17 Thread Yishay Weiss
Out of curiosity, why are there no type defs for raw mdl components? From: Alex Harui Sent: Monday, June 18, 2018 6:53:51 AM To: dev@royale.apache.org; comm...@royale.apache.org Subject: Re: [royale-asjs] branch feature/revert-refactor updated: Fixes #261.

Re: Problem with "this" inside static method

2018-06-17 Thread Harbs
> I'm unclear as to what the desired JS output really should be. Would it > really work in JS if the function was directly assigned to a slot on the > instance instead of a temporary variable first? If so why? Yes. Because it’s a reference to an instance variable function “cal"l can replace

Re: [royale-asjs] branch feature/revert-refactor updated: Fixes #261. Untyped members need to be surrounded with quotes.

2018-06-17 Thread Alex Harui
FYI, IMO, the recommended practice is to not have untyped members and create types if needed. But this is for MDL, so doesn't really matter. My reasoning is that it will always help future optimizers and runtimes to know the types of everything. My 2 cents, -Alex On 6/17/18, 3:43 AM,

Problem with "this" inside static method

2018-06-17 Thread Harbs
I have the following class: https://paste.apache.org/r7Ek Which gets cross-compiled to: https://paste.apache.org/3k1r The problem is here: struct.process = function():void { if (this.version === 0) { for (var i:int = 0;