Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A7D66E47B for ; Mon, 31 Dec 2012 14:40:52 +0000 (UTC) Received: (qmail 53658 invoked by uid 500); 31 Dec 2012 14:40:51 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 53626 invoked by uid 500); 31 Dec 2012 14:40:51 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 53607 invoked by uid 99); 31 Dec 2012 14:40:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Dec 2012 14:40:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [69.167.147.50] (HELO franklin.liquidweb.com) (69.167.147.50) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Dec 2012 14:40:45 +0000 Received: from localhost ([127.0.0.1]:55248) by franklin.liquidweb.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1TpgXN-0003Kz-M3 for flex-dev@incubator.apache.org; Mon, 31 Dec 2012 09:40:21 -0500 Received: from 70.20.58.119 ([70.20.58.119]) by franklin.liquidweb.com (Horde Framework) with HTTP; Mon, 31 Dec 2012 09:40:20 -0500 Message-ID: <20121231094020.13506bzk06sgathw@franklin.liquidweb.com> Date: Mon, 31 Dec 2012 09:40:20 -0500 From: Michael Schmalle To: flex-dev@incubator.apache.org Subject: Re: [Wiki] AS3 language features to be simulated References: <20121231073524.11423k1xqce5f2bw@franklin.liquidweb.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.8) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - franklin.liquidweb.com X-AntiAbuse: Original Domain - incubator.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - teotigraphix.com X-Get-Message-Sender-Via: franklin.liquidweb.com: authenticated_id: teotigra/from_h X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org No, you didn't confuse me. I think for the time being I will keep my eyes shut to these implementation discussions. :) I have to go back now and finish some things with the compiler, configuration etc in the project before I focus back on the js production. I did checkout your project from GIT locally and will use that to start investigating in my free time. I probably will also create another emitter subclass to experiment with producing your examples so we can compare the two down the road. If I do this, it may allow you to check out the FalconJx code and start submitting some patches against it. Mike Quoting Frank Wienberg : > Hi Mike, > > sorry if I confused you, the Wiki page is still work in progress and much > my "brain dump" of all AS3 features I know have to be simulated, and also > how I'd suggest to do so. > As I continue, I'm going to add more illustrating examples. Concerning the > private members, I think you are on the right track. The "class inheritance > level" I am talking about is an optimization over using the fully qualified > name of the class as postfix for private fields. In Jangaroo, we compute > the inheritance level (or depth) of the class and simply use that number. > This also ensures unique identifiers, as a class can never have the same > inheritance level as any super or sub class. > > Greetings > -Frank- > > > On Mon, Dec 31, 2012 at 1:35 PM, Michael Schmalle > wrote: > >> Hey Frank, >> >> I'm getting a bit confused here. I guess I really need to spend some time >> and get the relevant javascript information under my belt. >> >> Is what you are showing on this page, your solution? >> >> Please comment on the below if the code is what you are talking about in >> those paragraphs; >> >> >> Members and visibility >> --------------------------- >> >> private function _privateMethod():void { >> } >> - this._privateMethod() >> >> public var foo:int; >> - foo = 42 >> >> private var foo:int; >> - foo$FooClass = 42 >> >> internal bar:int; >> - bar$foo_bar_baz >> >> The above seems like it's going to be pretty universal regardless of what >> production scheme we use. Is there any articles you know about that explain >> JS scope and how it's implemented? Or is that just the ECMA5 specs? >> >> Mike >> >> >> >> >> >> >> -- >> Michael Schmalle - Teoti Graphix, LLC >> http://www.teotigraphix.com >> http://blog.teotigraphix.com >> >> > -- Michael Schmalle - Teoti Graphix, LLC http://www.teotigraphix.com http://blog.teotigraphix.com