On Tuesday, 11 April 2023 at 17:30:34 UTC, Hipreme wrote:
>pure
breaks logging in your function for debugging
You can use a debug statement for that, which looks like debug writeln("log");
. Or, what I do, create a 'debug print' function that looks like something this:
void dprint(T...)(auto ref T args, int line = __LINE__, string file = __FILE__)
{
debug writeln(file, "(", line, "): ", args);
}