[Laszlo-dev] For Review: Change 20071029-dda-s Summary: support try/catch/finally and throw statements in SWF7/8
Donald Anderson
dda at ddanderson.com
Tue Oct 30 09:47:11 PDT 2007
Hi John,
This is standard Javascript that we just didn't support in SWF7/8 up
to now.
For test cases, if you're talking about a .lzx file in the test
directory,
that illustrates how to use the language feature and proves that it
works,
I can do that. If there's something else you have in mind, let me know.
- Don
On Oct 30, 2007, at 9:49 AM, John Sundman wrote:
> Are there test cases? If not, please add at least one.
>
> What level of documentation is needed for this? Is this standard
> JavaScript, or an LZX enhancement? If it's not standard
> Javascript, then I expect we'll need to explain the concept, since
> not all LZX developers can be expected to be familiar with Java and
> other languages that support try/catch.
>
> Thanks,
>
> jrs
>
>
>
> On Oct 29, 2007, at 11:36 PM, Donald Anderson wrote:
>
>> Change 20071029-dda-s by dda at freddie.local on 2007-10-29 22:24:27 EDT
>> in /Users/dda/laszlo/src/svn/openlaszlo/trunk
>> for http://svn.openlaszlo.org/openlaszlo/trunk
>>
>> Summary: support try/catch/finally and throw statements in SWF7/8
>>
>> New Features: try/catch/finally supported in SWF7/8.
>>
>> Bugs Fixed: LPP-1539
>>
>> Technical Reviewer: ptw
>> QA Reviewer: maxcarlson
>> Doc Reviewer: (pending)
>>
>> Documentation:
>>
>> Release Notes:
>> try, catch, finally, throw statements are now supported in
>> SWF7/8 as well as DHTML
>> runtimes.
>>
>> Details:
>> try/catch/finally are very helpful in creating a reliable
>> software.
>> It should help in consolidating/maintaining code in the
>> runtime kernel,
>> since DHTML already supports try/catch and we won't need to have
>> alternate implementations of error handling code.
>>
>> Tests:
>> created some simple tests using try/catch/finally,
>> also try/catch (no finally). Had some problems with
>> my try/finally (no catch) example.
>> The only way I've found to trigger an exception
>> in SWF7/8 is to use an explicit throw statement,
>> since the SWF instruction set seems to continue to operate
>> with various kinds of errors.
>>
>> Files:
>> M WEB-INF/lps/server/src/org/openlaszlo/sc/Actions.java
>> M WEB-INF/lps/server/src/org/openlaszlo/sc/Instructions.java
>> M WEB-INF/lps/server/src/org/openlaszlo/sc/Assembler.java
>> M WEB-INF/lps/server/src/org/openlaszlo/sc/
>> InstructionCollector.java
>> M WEB-INF/lps/server/src/org/openlaszlo/sc/CodeGenerator.java
>>
>> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071029-
>> dda-s.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