Release D 2.078.0

Mike Parker aldacron at gmail.com
Sat Jan 6 01:42:26 UTC 2018


On Thursday, 4 January 2018 at 17:40:55 UTC, David Nadlinger 
wrote:

> This is slightly inaccurate. Regular stack cleanup doesn't 
> involve the runtime at all; druntime only comes into play for 
> exception handling. Since destructors also need to be run when 
> the scope is left by an exception, they are implemented via 
> `try {} finally {}` internally. The EH part of these depends on 
> druntime, but not the regular path.
>
>
>
> This is somewhat confusingly worded as well. It's actually 
> mostly the other way around – druntime depends on ModuleInfo to 
> be emitted, crucially for static constructor, destructors and 
> unit tests to be run. At least without shared libraries in the 
> picture, it would be fairly easy to manually look up the set of 
> ModuleInfos in a druntime-less D program.
>
>  — David

Thanks, David!




More information about the Digitalmars-d-announce mailing list