Truly @nogc Exceptions?

Nemanja Boric dlang at nemanjaboric.com
Fri Sep 21 10:06:06 UTC 2018


On Friday, 21 September 2018 at 09:10:06 UTC, Jonathan M Davis 
wrote:
> [...]
> I think that the message member was added by Dicebot as an 
> attempt to fix this issue, because Sociomantic needed it, but I 
> don't know exactly what's going on with that or @__future.
>
> - Jonathan M Davis

The @__future is fully (to a reasonable degree) implemented - and 
the `Throwable.message` was marked with this attribute to prevent 
breaking the user code when introducing this field, and it 
probably can just be removed from there at this point (since many 
releases have been released).

This is the PR when Throwable.message was first introduced: 
https://github.com/dlang/druntime/pull/1445 We had the same 
discussion there, and you can see sociomantic's use case in 
Mihail's comments there. The entire PR have a very good 
discussion and we (not Sociomantic) still need sink-based method 
IIUC.


More information about the Digitalmars-d mailing list