On Thursday, 29 June 2023 at 19:19:21 UTC, Adam D Ruppe wrote:
On Thursday, 29 June 2023 at 18:47:48 UTC, Josh Holtrop wrote:
$ ldc2 -of environment environment.d
Since you named the file `environment.d` and didn't use an
explicit `module name.thing;` declaration, the compiler assumes
it sho
On Thursday, 29 June 2023 at 18:47:48 UTC, Josh Holtrop wrote:
$ ldc2 -of environment environment.d
Since you named the file `environment.d` and didn't use an
explicit `module name.thing;` declaration, the compiler assumes
it should match the filename.
So it injects an implicit `module envi
I am trying to use `std.process.environment.get()` as described
here: https://dlang.org/library/std/process/environment.get.html
I wrote this program to test it:
```d
import std.stdio;
import std.process;
int main(string[] args)
{
string home = environment.get("HOME");
writeln("home is