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

Reply via email to