jai-like CTFE string formating

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 13 12:51:31 PDT 2017


On Sunday, 13 August 2017 at 19:47:37 UTC, Jerry wrote:
> Seems like it'd be a good idea to pre compute all of phobos for 
> compile time computations, as they should be changing. That 
> would drastically reduce using any of phobos for compile time 
> computation.

You cannot do that.
The point of template code is that the user can change it from 
the outside.
There is no way to precompute the reaction to things that are yet 
to be realized.

The way compile time is saved here is by limiting the flexibility.



More information about the Digitalmars-d mailing list