Singleton in Action?
Jonathan M Davis
newsgroup.d at jmdavisprog.com
Sun Feb 3 11:17:38 UTC 2019
On Sunday, February 3, 2019 2:41:48 AM MST Ron Tarrant via Digitalmars-d-
learn wrote:
> On Saturday, 2 February 2019 at 19:40:25 UTC, Andre Pany wrote:
> > https://rosettacode.org/wiki/Singleton#D
>
> Do you know if this is for a current version of D? The compiler
> is choking on the import statements, complaining that it can't
> read std/thread.d and std/c/time.d
I don't recall std.thread ever existing, and std.c.time hasn't been around
for a while. Thread is in core.thread, and all of the C bindings for
standard C and OS APIs are supposed to be in druntime. So, the equivalent to
C's time.h would be core.stdc.time.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list