I'm trying to debug stuff, so I want to add verbose logging

struct S(T) {
  this() {
    writeln("created S(T) with properties and ID");
  }
}

static a = S!int(); // bah

I guess users can call this code from any context, but when i'd also like to see the log output for debugging purposes. Is there a way around this?

Can I maybe only do a writeln in a non compile-time context?

Cheers,
- ali

Reply via email to