[Issue 1475] allow to use intrinsic math functions (e.g. trigonometry) in CTFEs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 5 17:46:59 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1475
------- Comment #4 from wbaxter at gmail.com 2007-09-05 19:46 -------
> Sine tables could also be pre-calculated at compile time, etcetera.
The ironic thing is that if you wanted to implement a CTFE sine function right
now, table lookup is probably the most reasonable way to do it.
Anyway, I like the general idea, and I think the same thing goes for many other
things, like string formatting functions. There's a perfectly fine string
formatter in std.string.format. It's a shame the compiler isn't able to invoke
it during compile time.
--
More information about the Digitalmars-d-bugs
mailing list