std.experimental.logger formal review round 3

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 26 16:45:44 PDT 2014


On 10/26/2014 11:29 PM, Robert burner Schadek wrote:
>
> And I forgot to add, no better solution presented itself in one year.

Well I showed one solution, but reduce it to its essence.
If you allow to define a Logger with a LogLevel know at compile time and 
you statically pass the LogLevel of your message to the logging function 
you can elide that call. For anything else you need a runtime check.

http://dpaste.dzfl.pl/2538c3b5d287



More information about the Digitalmars-d mailing list