Approved.
I think you want this.
Classes are allowed to have statements at their top level that get
executed in the scope of the class at class definition time. This has
limited use, but I think we have to support it.
On 2007-12-11, at 13:04 EST, Donald Anderson wrote:
Change 20071211-dda-y by [EMAIL PROTECTED] on 2007-12-11 12:52:21 EST
in /Users/dda/laszlo/src/svn/openlaszlo/branches/devildog
for http://svn.openlaszlo.org/openlaszlo/branches/devildog
Summary: Fix (some) problems compiling SWF9 runtime
New Features: none
Bugs Fixed:
Technical Reviewer: ptw (pending)
QA Reviewer: hminsky (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Reenabled some code in the compiler that visited a
class definition block and handled 'class if' statements.
These statements allow 'if ($swf9)' style code to be processed
outside
of a method. This code, taken from the CommonGenerator superclass,
is now enabled, at least to the extent that these statements are
processed.
A TODO has been left in the SWFGenerator part of this code, as more
is to be done, or at least considered.
Tests:
Files:
M WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071211-dda-y.tar
--
Don Anderson
Java/C/C++, Berkeley DB, systems consultant
Voice: 617-547-7881
Email: [EMAIL PROTECTED]
WWW: http://www.ddanderson.com