[GSoC] 'Replace Runtime Hooks with Templates' progress and update thread

Yatheendra 3df4 at gmail.ru
Fri May 31 08:03:15 UTC 2019


On Friday, 31 May 2019 at 07:03:56 UTC, Seb wrote:
>
> FWIW we have been doing this for years now (have a look at the 
> various templates in object.d, e.g. __cmp or __switch) and the 
> fact that no one noticed nor complained, shows that this is no 
> concern.
>
> tl;dr: the compiler already generates a special template 
> everytime you do e.g. a switch, a cast, a comparison between 
> classes etc.
>
> Examples:
> - https://run.dlang.io/is/gsCSO1
> - https://run.dlang.io/is/ti7rlu
>
> There are many more.

Thanks. That clears things up.


More information about the Digitalmars-d mailing list