help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] Correct way to throw exceptions/errors from C to ST


From: Holger Hans Peter Freyther
Subject: Re: [Help-smalltalk] Correct way to throw exceptions/errors from C to ST
Date: Sat, 4 Apr 2015 18:24:39 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, Apr 04, 2015 at 02:50:01AM +0200, Roland Plüss wrote:

Oh,

> gst_eval_code( "SystemExceptions.InvalidArgument new signal" );
> 
> But this causes the VM to call abort since an exception happened outside
> the bytecode. I assume you need to be more clever in this case. So what
> is the correct way to throw these kinds of exceptions from inside a C
> function?

Oh I don't know. The signal should occur once is out of C. E.g.
you should be able to return an instance of InvalidArgument and
in the Smalltalk code that triggered the C call-out check for the
response and then signal it?




reply via email to

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