is "import std;" a valid approach or a violation of the D programming language?

Adam D. Ruppe destructionator at gmail.com
Thu May 6 22:33:18 UTC 2021


On Thursday, 6 May 2021 at 22:27:21 UTC, Steef Boerrigter wrote:
> None of the examples in Andrei or Ali's books do this, but 
> following the turtles all the way down principle they should 
> also be able to go all the way up. (or no?)

The convenience module was simply added after those books were 
written.

> I've tested this and it only adds about .3 s to my compiles

lol my entire program takes less than that to build total.

> However, gdc does not compile any code using this approach:

gdc also uses an older version of Phobos.

The import std thing was only added.... I think last year. It is 
quite recent.


More information about the Digitalmars-d mailing list