D's Destructors are What Scott Meyers Warned Us About

Mike Franklin slavo5150 at yahoo.com
Sun May 27 18:55:41 UTC 2018


On Sunday, 27 May 2018 at 16:06:21 UTC, 12345swordy wrote:

> You are replacing runtime typeinfo with compiletime templates. 
> Unless you can guarantee that the type information won't change 
> during runtime, you are going to have a hard time.

Read this thread for context 
https://forum.dlang.org/post/mr7a65$2hc$1@digitalmars.com

See this PR for an example https://github.com/dlang/dmd/pull/7225

And see this talk for a demonstration of the benefits 
https://www.youtube.com/watch?v=endKC3fDxqs

Mike




More information about the Digitalmars-d mailing list