[Issue 18630] std.math must CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 29 14:31:57 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18630
--- Comment #2 from Eduard Staniloiu <edi33416 at gmail.com> ---
(In reply to Manu from comment #0)
> I usually workaround with a static constructor that pre-computes tables at
> startup, but that only solves some subset of cases. When I want those tables
> to interact with other CTFE code, I'm blocked.
Maybe you can replace the static ctor with this idiom
https://p0nce.github.io/d-idioms/#Precomputed-tables-at-compile-time-through-CTFE
--
More information about the Digitalmars-d-bugs
mailing list