On Saturday, 20 July 2019 at 09:01:47 UTC, Newbie2019 wrote:
On Saturday, 20 July 2019 at 09:01:21 UTC, Newbie2019 wrote:
I want to cast std.stdio : writefln into pure function pointer, so I can call it from debug pure function. is there a way to work around the pure check for call writefln ?

nothrow check, not pure.

Use try and catch around writefln.

https://run.dlang.io/is/Kv3QnT

Reply via email to