std.experimental.logger + threadIds
Christian Köstlin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Dec 19 13:05:21 PST 2016
On 19/12/2016 21:32, Robert burner Schadek wrote:
> The ugly way is to create a @trusted function/lambda that coverts the
> threadId to a string.
>
> Not sure about the pretty way.
thanks a lot. works good enough, just for reference, I added:
string tid2string(Tid id) @trusted {
import std.conv : text;
return text(id);
}
More information about the Digitalmars-d-learn
mailing list