[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: |
Roland Plüss |
Subject: |
Re: [Help-smalltalk] Correct way to throw exceptions/errors from C to ST |
Date: |
Sun, 05 Apr 2015 17:44:52 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
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
signature.asc
Description: OpenPGP digital signature
Re: [Help-smalltalk] Correct way to throw exceptions/errors from C to ST, Paolo Bonzini, 2015/04/05
- Re: [Help-smalltalk] Correct way to throw exceptions/errors from C to ST, Roland Plüss, 2015/04/05
- Re: [Help-smalltalk] Correct way to throw exceptions/errors from C to ST, Holger Hans Peter Freyther, 2015/04/06
- Re: [Help-smalltalk] Correct way to throw exceptions/errors from C to ST, Roland Plüss, 2015/04/07
- Re: [Help-smalltalk] Correct way to throw exceptions/errors from C to ST, Holger Hans Peter Freyther, 2015/04/07
- Re: [Help-smalltalk] Correct way to throw exceptions/errors from C to ST, Roland Plüss, 2015/04/08
- Re: [Help-smalltalk] Correct way to throw exceptions/errors from C to ST, Roland Plüss, 2015/04/12
- Re: [Help-smalltalk] Correct way to throw exceptions/errors from C to ST, Holger Freyther, 2015/04/12
- Re: [Help-smalltalk] Correct way to throw exceptions/errors from C to ST, Roland Plüss, 2015/04/12