writeln and write at CTFE

oddp oddp at posteo.de
Wed Jan 13 23:38:54 UTC 2021


On 13.01.21 21:47, tsbockman via Digitalmars-d-learn wrote:
> Is CTFE I/O a standard feature in other languages? How many other languages even have a CTFE 
> feature comparable to D's?

Just two langs I use from time to time:

1) nim via forced ctfe; way faster than d by running through a vm:

const foo = fib(42)
static:
   echo "foobar"

2) crystal via macros:

{{ puts "foobar" }}

Another one would be zig via comptime, but never tried that.


More information about the Digitalmars-d-learn mailing list