object.Exception at std/stdio.d(1321): Enforcement failed - I must be doing something wrong?

monarch_dodra monarchdodra at gmail.com
Thu Aug 15 12:54:37 PDT 2013


On Thursday, 15 August 2013 at 18:09:21 UTC, monarch_dodra wrote:
> This doesn't fix everything though, and you should also rework 
> your "logLevel" functions to not allocate: For example, by 
> making "log" accept two strings.

Another issue is that printing a time will always allocate a 
string, so there is (currently) no way to log at what time the 
log file is closed, if you rely on the destructor.


More information about the Digitalmars-d-learn mailing list