std.logger

Robert Schadek realburner at gmx.de
Thu Aug 22 11:04:16 PDT 2013


On 08/22/2013 07:48 PM, Johannes Pfau wrote:
> The problem is that format allocates using the GC. Functions like
> writefln can be much more efficient so if the backend is a FileLogger it
> could take advantage of that. But IIRC it's not simple to implement
> this 'forwarding' with classes / interfaces as you'll need templated
> functions...
yes, but as you said it is not simple. If it where a template the
assignable default logger concept would not work,
as it would instantiate the template of the base class. I don't think
that this is possible (plz proof me wrong).
IMO the default logger concept is more important.


More information about the Digitalmars-d mailing list