template statistics

Stefan Koch uplink.coder at googlemail.com
Wed Jun 3 04:52:37 UTC 2020


On Wednesday, 3 June 2020 at 03:06:37 UTC, Basile B. wrote:
> On Wednesday, 3 June 2020 at 02:32:54 UTC, Walter Bright wrote:
>>        [...]
>
> looks like abstractions are not zero cost in fine

Looks like you haven't used `-vcg-ast` either.
If you do you'll see what's going on.

Some of these can be replaced with CTFE.
Generally only things that need to work on template parameter 
lists are forced to be templates.

Well and legitimate type parameterization of course.
But those are the minority.

If the template sounds like a question about a type,
Like (CharTypeof or isIntegral) it probably should not be a 
template.


More information about the Digitalmars-d mailing list