This is the mail archive of the
mailing list for the GDB project.
Re: error-catching mechanism for scripts
Andrew Cagney wrote:
> From M3:
Excellent suggestion. Thanks.
These is also from Object Pascal, so they are easily recognizable.
It has to be the try ... except construct though.
The try...finally has a different semantics.
> Try Except:
> Body ...
> exception => action; ...
> Try Finally:
> statement 1;
> statement 2;
> might give you ideas and potential semantic issues. eg
> Another key word might be trap?
Red Hat Canada Ltd. E-Mail: firstname.lastname@example.org
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9