Re: Correct way to throw exceptions/errors from C to ST

Roland Plüss <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.gnu.general
Message-ID <[email protected]>

On 04/05/2015 08:07 AM, Paolo Bonzini wrote:
>
> On 05/04/2015 00:21, Roland Plüss wrote:
>> something [ [ anObject aCCallThatThrows ] on: Exception do: [ 'a
>> test' printNl ] ]
>>
>> But the exception is not handled but abort called by the byte
>> code. Could it be it fails because I'm using gst_perform?
> It's because each call to gst_perform is done in a separate Smalltalk
> Process.  Holger's proposed solution (return the exception) sounds great.
>
> Paolo
That sounds bad. I don't want to spawn a new process whenever I send a
message to the smalltalk scripts for performance reasons (unless running
a smalltalk process is so lightweight you don't notice it). Do I have to
use a different call? I didn't find anything better than this.

-- 
Yours sincerely
Plüss Roland

Leader and Head Programmer
- Game: Epsylon ( http://www.indiedb.com/games/epsylon )
- Game Engine: Drag[en]gine ( http://www.indiedb.com/engines/dragengine
, http://dragengine.rptd.ch/wiki )
- Normal Map Generator: DENormGen ( http://epsylon.rptd.ch/denormgen.php )
- As well as various Blender export scripts und game tools

_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
signature.asc (application/pgp-signature, 181 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlUhWHkACgkQjKGu9ysRWfqyggCdHTOSX+l6mneAZh5fBSujUF5U
BsAAoIFwDNhkEZ/lta4Xk0EinEn9sMcD
=eg2s
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.