[Laszlo-dev] For Review: Change 20080417-hqm-z Summary: fix inline dataset bug
Donald Anderson
dda at ddanderson.com
Fri Apr 18 07:53:43 PDT 2008
I don't see why flex doesn't accept it.
Nonetheless, we could do this in the backend, we are already
keeping globals separate. It does mean that every little
initializer (x=0; y=true, etc.) will get shoved into ---
the LzApplication() constructor as Henry has done?
On Apr 18, 2008, at 8:33 AM, P T Withington wrote:
> Henry was emitting:
>
> var foo = ...;
>
> He had to change it to:
>
> var foo;
> foo = ...;
>
> So that foo was declared and did not raise a compiler warning when
> forward-referenced from a method. The method actually is not called
> until foo is initialized, but the flex compiler gets upset when it
> sees a free reference that has not be declared first.
>
> On 2008-04-18, at 08:16 EDT, Donald Anderson wrote:
>> Can you throw me an example of what's not happening?
>> I can't really tell much from the test case.
>>
>> On Apr 18, 2008, at 8:00 AM, P T Withington wrote:
>>
>>> I wonder if this is something the back-end needs to handle,
>>> because JS2 semantics are that variable declarations are hoisted
>>> to the top of the containing block (although the initialization
>>> occurs in lexical order)... It appears the flex commpiler is not
>>> doing that for us?
>>>
>>> On 2008-04-17, at 15:18 EDT, Henry Minsky wrote:
>>>> Change 20080417-hqm-z by hqm at badtzmaru.home on 2008-04-17
>>>> 15:17:43 EDT
>>>> in /Users/hqm/openlaszlo/trunk5
>>>> for http://svn.openlaszlo.org/openlaszlo/trunk
>>>>
>>>> Summary: fix inline dataset bug
>>>>
>>>> New Features:
>>>>
>>>> Bugs Fixed:
>>>>
>>>> Technical Reviewer: pbr
>>>> QA Reviewer: ptw
>>>> Doc Reviewer: (pending)
>>>>
>>>> Documentation:
>>>>
>>>> Release Notes:
>>>>
>>>> Details:
>>>>
>>>> separate out the global var decl from the instantiation of the
>>>> dataset/
>>>>
>>>>
>>>> Tests:
>>>>
>>>> test/swf9/data-1.lzx
>>>>
>>>> Files:
>>>> M WEB-INF/lps/server/src/org/openlaszlo/compiler/
>>>> DataCompiler.java
>>>>
>>>> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080417-hqm-z.tar
>>>
>>
>>
>> --
>>
>> Don Anderson
>> Java/C/C++, Berkeley DB, systems consultant
>>
>> voice: 617-547-7881
>> email: dda at ddanderson.com
>> www: http://www.ddanderson.com
>>
>>
>>
>>
>
--
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