Compile-Time Sort in D
ketmar via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Fri Jun 9 08:30:54 PDT 2017
Steven Schveighoffer wrote:
> At least in terms of i/o printing to the console or whatnot, it would be
> cool to be able to do so at compile-time just directly with writeln. As
> of now, a CTFE function can't call writeln, and it also can't pragma(msg,
> ...) because it has to be written as a runtime function.
yeah, `ctfeWriteln()`, even in very rudimentary form, will be priceless for
debugging CTFE code. sure, CTFE code can be called in runtime and debugged,
but sometimes it require alot of bouncing back and forth, like "let's
replace all `enum` values with `auto` down the code, and then back", 'cause
result of one CTFE call may be used in another CTFE call, and so on...
More information about the Digitalmars-d-announce
mailing list