C++17 cannot beat D surely
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jun 4 12:08:25 PDT 2017
On 2017-06-04 08:18, H. S. Teoh via Digitalmars-d wrote:
> Ah, but if you want your function to work both at CTFE and runtime, then
> why write `if (__ctfe)` in the first place? :-D
>
> Unless, of course, you're optimizing for runtime with something that's
> incompatible with CTFE, like inline assembly or something. Then you're
> on your own. :-D
Or using malloc/free at runtime but the GC at compile time.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list