std.experimental.logger.Logger writeLogMsg is @safe?

Minas Mina via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 22 14:22:01 PST 2016


I'm trying to inherit from Logger, and I my custom logger to 
print to stdout using writeln(). But I can't because writeLogMsg 
is @safe, whereas writeln() is @system.

Why is writeLogMsg @safe? This is too restrictive.


More information about the Digitalmars-d-learn mailing list