[Laszlo-dev] For Review: Change 20071217-ptw-6 Summary: Class support for swf9

Donald Anderson dda at ddanderson.com
Tue Dec 18 06:30:40 PST 2007


Approved.
It compiles with SWF9 compiler, modulo the 'const' statement
(known compiler deficiency).

Question, with this comment:
   public static function initialize (prototype:Object):void {
     // @devnote: Subclasses must have this as their first line:
     // prototype.constructor.initialize.call(this, prototype);
   }

This is a problem mentioned before - a static function cannot
reference 'this'.  Did we have a workaround for that?
I mentioned using 'prototype.constructor' instead of 'this' - would  
that work?

Another question - supposing I know the 'magic' to auto-insert into
the initialize method - can I blindly insert one (i.e. safe to call  
it twice?)

- Don

On Dec 17, 2007, at 5:38 PM, P T Withington wrote:

> Change 20071217-ptw-6 by ptw at dueling-banjos.local on 2007-12-17  
> 17:31:35 EST
>     in /Users/ptw/OpenLaszlo/devildog
>     for http://svn.openlaszlo.org/openlaszlo/branches/devildog
>
> Summary: Class support for swf9
>
> Technical Reviewer: henry.minsky at gmail.com (pending)
> QA Reviewer: dda at ddanderson.com (pending)
>
> Details:
>     Move the part of Class.lzs that is needed for swf9 into  
> platform/js2/Instance
>
> Tests:
>     The file compiles for me.
>
> Files:
> M      WEB-INF/lps/lfc/LaszloLibrary.lzs
> A      WEB-INF/lps/lfc/compiler/platform
> A      WEB-INF/lps/lfc/compiler/platform/js2
> A      WEB-INF/lps/lfc/compiler/platform/js2/Instance.js2
> M      WEB-INF/lps/lfc/compiler/Library.lzs
>
> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071217- 
> ptw-6.tar


--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

Voice:  617-547-7881
Email:  dda at ddanderson.com
WWW:    http://www.ddanderson.com



More information about the Laszlo-dev mailing list