The only reference to this in the dguide is:
There are no exceptions, and no exception handling in the SWF
runtime. try/catch/finally is not supported.
It does not appear in the table.
Should I simply delete the sentence?
Thanks,
Lou
On Oct 30, 2007, at 11:55 AM, John Sundman wrote:
Done:
http://www.openlaszlo.org/jira/browse/LPP-4996
jrs
On Oct 30, 2007, at 11:48 AM, P T Withington wrote:
try/catch/finally is standard Javascript 1, so no need to do any
special documentation, but we _do_ need to remove it from the
table of things that the swf runtime does not support... will you
file a Jira bug to that effect?
On 2007-10-30, at 09:49 EDT, 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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
WWW: http://www.ddanderson.com