Is this a new bug ?

Boris Carvajal boris2.9 at gmail.com
Sat Jul 20 09:30:55 UTC 2019


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


More information about the Digitalmars-d-learn mailing list