newCTFE Status September 2019

Timon Gehr timon.gehr at gmx.ch
Thu Sep 5 21:19:07 UTC 2019


On 05.09.19 12:15, Stefan Koch wrote:
> On Thursday, 5 September 2019 at 09:32:38 UTC, Dennis wrote:
>> On Thursday, 5 September 2019 at 07:33:21 UTC, Stefan Koch wrote:
>>> Currently I am trying to model a thrown Exception with a specially 
>>> flagged return value, which will go up into the catch-clause-stack 
>>> instead, of being returned to the caller.
>>
>> This reminds me of an article I once found, you might be interested in 
>> it:
>> https://nim-lang.org/araq/quirky_exceptions.html
> 
> Thank you very much for sharing that link.
> Their approach is better than what I had originally since, that way 
> catch-blocks can be created after the Call. and there is no need to 
> build closures.

Another thing that works well is to just use the exception handling 
mechanism of the host language.



More information about the Digitalmars-d mailing list