MOO-cows Mailing List Archive
[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
[RFC] try ... finally ... entry enhancements?
- Date: Thu, 10 Jul 1997 22:06:13 -0400
- From: Richard Godard <janus@cam.org>
- Content-Type: text/plain; charset="us-ascii"
Hi,
Would it be a good idea and is it easily to change the try ... finally ...
entry statement to something like:
try
<try statements>
finally [LIST exit_info_variable]
<finally statements>
endtry
exit_info_variable value could be
{0}
=> <try statements> doesn't return nor raise an error
{1, <return value>}
=> <try statements> doesn't raise an error and return <return value>
{<code>, <message>, <value>, <traceback>}
=> <try statements> raise <code>
Such tool would help to make smarters finally statements (IMHO) and would
also such nifty things as nice traces in-db (right now I have @trace <eval
code to be traced> but I have no way to show the return/exit values :(
Comments/suggestions are more than welcome.
Thanks.
Richard/Janus
Follow-Ups:
Home |
Subject Index |
Thread Index