object.Exception at std/stdio.d(1321): Enforcement failed - I must be doing something wrong?
Colin Grogan
grogan.colin at gmail.com
Thu Aug 15 13:46:17 PDT 2013
I've decided whats the point in printing a time that the file
closed at, the last message will probably tell me that anyway if
theres an error to find.
Your suggestions worked perfectly, I've obviously a lot to learn
on how to use the intricacies of D.
Thanks very much!
On Thursday, 15 August 2013 at 19:54:42 UTC, monarch_dodra wrote:
> 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