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 347F69DE3 for ; Fri, 24 Feb 2012 07:32:59 +0000 (UTC) Received: (qmail 44257 invoked by uid 500); 24 Feb 2012 07:32:58 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 44228 invoked by uid 500); 24 Feb 2012 07:32:58 -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 44218 invoked by uid 99); 24 Feb 2012 07:32:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2012 07:32:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [80.237.132.80] (HELO wp073.webpack.hosteurope.de) (80.237.132.80) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2012 07:32:49 +0000 Received: from p4aa831.osaknt01.ap.so-net.ne.jp ([120.74.168.49] helo=[192.168.1.21]); authenticated by wp073.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) id 1S0pdk-00050A-JU; Fri, 24 Feb 2012 08:32:28 +0100 Message-ID: <4F473CFA.3010101@leichtgewicht.at> Date: Fri, 24 Feb 2012 16:32:10 +0900 From: Martin Heidegger User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: flex-dev@incubator.apache.org Subject: Re: [CODE] Short cleanup References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;mh@leichtgewicht.at;1330068769;ad4e1c57; X-Virus-Checked: Checked by ClamAV on apache.org On 24/02/2012 15:17, Alex Harui wrote: > Somehow, the policy became 4 spaces. Personally I don't care if it is > a four-space tab or four spaces, but definitely not 8 spaces although > some of that did get in there. What do you mean "somehow"? I don't care as well - there are bad arguments for either - but I think we should settle on one of both. > Includes should only be in two places: version.as, and some interfaces > that mirror some flash.display.* classes. I don't think any of the > latter includes are used more than twice, so it might be simpler to > just copy and paste the includes into the files that use them and get > rid of the includes. They are used for some hefty interfaces like ISpriteInterface or IDisplayObjectInterface - I am wondering why they are not regular interfaces - why import them if they could be extended? Also a lot of Style and other Metadata tags are included like this. I guess to reduce the maintenance (inheritance or delegation seem not to work in those cases). > It is used to detect if someone mixed classes from different versions > (and didn't get some earlier failure). I want to have a version stamp > in each class. You proposed a compiler change that could eliminate > version.as, I think. No I didn't - at least not that I remember. However: I don't really think that this solves any problem. I mean: What if I use classes from different versions? Will it throw an error? Not that I know of. Just in debugging I might see that. To me the only reasonable solution for this is a maven like dependency-tree or md5 hashes (who cares if its from different versions if it does exactly the same thing). > Way back when, we were told to use if ( "" in obj) for "sealed" classes and > hasOwnProperty for dynamic objects. The documentation doesn't say that and > I haven't tested speed. And, hasOwnProperty must be used in some prototype > inheritance cases. Thanks for clarification (Omar too). yours Martin.