CTFE ^^ (pow)

Walter Bright newshound2 at digitalmars.com
Mon Mar 26 19:40:41 UTC 2018


On 3/26/2018 9:26 AM, Guillaume Piolat wrote:
> On Saturday, 24 March 2018 at 16:37:06 UTC, Manu wrote:
>> I'm not sure why I seem to have to defend the idea that it's a *great
>> thing* that D (in theory; according to the advertising brochure) does
>> away with these requirements.
> 
> Manu is not the only one who has to write such programs because of ^^ (log, exp, 
> cosh, sinh, tanh... need pow to be CTFE to be CTFE themselves).
> It's a lot more unconvenient, and plain different semantics (can't parameterize 
> the table based on a compile-time value) when compared to having working CTFE.

It is a great idea, and some ought to pull it:
https://github.com/dlang/dmd/pull/8071


More information about the Digitalmars-d mailing list