[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: try/catch not swallowing errors

From: Daniel Kraft
Subject: Re: try/catch not swallowing errors
Date: Sun, 14 Apr 2019 06:45:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

Hi mike!

On 13.04.19 21:38, Mike Miller wrote:
> On Sat, Apr 13, 2019 at 17:24:19 +0200, Daniel Kraft wrote:
>> That looks correct to me.  When I do exactly the same (use error() in
>> C++) in an .oct file of mine, it works, though.  That's why I guess it
>> could be related to packages somehow.
> I think it may be more specific than that. Can you try the same example,
> but call 'fload' with an invalid file descriptor? I tried that and the
> error message was suppressed, and shows up with 'lasterror'.
>     try
>       fload (99);
>     catch
>     end_try_catch

Interesting!  For me, that code does indeed also not give an error.

(I originally found this because my real code uses try-catch with fload
to handle EOF conditions.)


OpenPGP: 1142 850E 6DFF 65BA 63D6  88A8 B249 2AC4 A733 0737
Namecoin: id/domob -> https://nameid.org/?name=domob
3.6.0: Bar-Pri-Ran-Rog-Sam-Val-Wiz
To go: Arc-Cav-Hea-Kni-Mon-Tou

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]