Date sent:              Thu, 07 Jul 2005 20:53:48 +0200
From:                   Florian Klaempfl <[EMAIL PROTECTED]>
To:                     FPC developers' list <fpc-devel@lists.freepascal.org>
Subject:                Re: [fpc-devel] Patch: Exception handling without 
SysUtils
Send reply to:          FPC developers' list <fpc-devel@lists.freepascal.org>
        <mailto:[EMAIL PROTECTED]>
        <mailto:[EMAIL PROTECTED]>

> Yury Sidorov wrote:
> 
> > From: "Florian Klaempfl" <[EMAIL PROTECTED]>
> > 
> >>> I found that try...except and try...finally do not work if
> >>> SysUtils unit is not used (exception handling code is not called).
> >>> The following patch fixes this issue.
> >>
> >>
> >> Not using sysutils means that you don't want exceptions. If you
> >> want to have run time errors converted into exceptions use
> >> sysutils. The patch has another probably undesired side effect:
> >> imaging someone installed an own errorproc to release resources
> >> (memory etc.) if he did so, he won't get that exception.
> > 
> > 
> > I think try/finally/except should work without SysUtils. It works in
> > Delphi. For example KOL library does not use SysUtils, but
> > programmer can use try/finally/except to write crash-proof code.

Isn't SysUtils used automatically in Delphi mode? That should be 
probably enough for Delphi compatibility, shouldn't it?

Tomas

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to