1

Topic: Exceptions for Si

Look, what remarkable implementation of exceptions for Si from Mark Adlera: https://github.com/madler/pigz/blob/master/try.h here there is even what is not present in With ++: retry {}, always {} I will mandatory try, as I will be on Si a che-thread .

2

Re: Exceptions for Si

Hello, niXman, you wrote: X> look, what remarkable implementation of exceptions for Si from Mark Adlera: X> https://github.com/madler/pigz/blob/master/try.h X> here there is even what is not present in With ++: retry {}, always {} like anything especially new. setjmp + longjmp. X> I will mandatory try, as I will be on Si a che-thread . When last time ?

3

Re: Exceptions for Si

Hello, night beast, you wrote: NB> like anything especially new. setjmp + longjmp. Yes, setjmp and longjmp but how it is beautifully enveloped NB> when last time ? ... In a serious way - years to six volume smile

4

Re: Exceptions for Si

Hello, niXman, you wrote: X> look, what remarkable implementation of exceptions for Si from Mark Adlera: X> https://github.com/madler/pigz/blob/master/try.h Without a call  in case of exception burst. It is necessary to go, add further a macro for manual registration of objects with a call of the code of cleaning

5

Re: Exceptions for Si

Hello, _NN _, you wrote: _NN> Without a call  in case of exception burst. So Si _NN> Should go, add further a macro for manual registration of objects with a call of the code of cleaning for this purpose there is a unit always {}

6

Re: Exceptions for Si

Hello, niXman, you wrote: X> Hello, _NN _, you wrote: _NN>> Without a call  in case of exception burst. X> so Si _NN>> It is necessary to go, add further a macro for manual registration of objects with a call of the code of cleaning X> for this purpose there is a unit always {} I.e. the exterior try-catch block should clean behind all or in each function then it is necessary to write try-catch for manual cleaning? To attach and name better its one more macro. We tell new struct unwind {void (*f) (void *); void* p;} unwind unwinds [] = {}; int undwins_index;//#define new (dtor...) #define new (dtor, arg) \unwinds [unwinds_index ++] = {dtor, arg}; void f () {char* p = new (free, p) malloc (100);} try {f ();} catch (e) {}

7

Re: Exceptions for Si

Hello, _NN _, you wrote: _NN> I.e. the exterior try-catch block should clean behind all or in each function then it is necessary to write try-catch for manual cleaning? It turns out that in everyone... But also only, if something was selected... _NN> to attach and name better its one more macro. We tell new at all I do not know... smile it is fine, as I will decide something  on Si -  a subject and I will unsubscribe in this subject.

8

Re: Exceptions for Si

Such and in With ++ is - stackfull coruntinies