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: Mon, 6 Apr 2015 18:45:34 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

On Sun, Apr 05, 2015 at 05:47:29PM +0200, Roland Plüss wrote:

> What you mean with "C-style error"? A C++ exception (that doesn't work
> it looks like)? The cCall is of void return type so I can't return
> anything. And smalltalk side can't check the arguments as the
> information required to perform the checks is sometimes located deep
> inside the engine code base.

"C-style" error.. a non zero return code and maybe setting a
variable with the semantic of errno. The return type of "void"
is your decision? Can't you return something to indicate success
or failure?



reply via email to

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