How to modify process environment variables

Ky-Anh Huynh saigon at example.net
Wed Oct 18 03:49:55 UTC 2017


On Tuesday, 17 October 2017 at 08:42:09 UTC, Rene Zwanenburg 
wrote:
> On Tuesday, 17 October 2017 at 05:57:50 UTC, Ky-Anh Huynh wrote:
>> On Tuesday, 17 October 2017 at 04:56:23 UTC, ketmar wrote:
>>>
>>> you can use libc's `putenv()` in D too, it is ok. just import 
>>> `core.sys.posix.stdlib`,  it is there. D is not antagonistic 
>>> to C, and doesn't try to replace the whole libc with it's own 
>>> libraries. so if you see something that libc has and you'd 
>>> like to use -- just do it! ;-)
>>
>> I see :) I have always tried to avoid C if possible :D
>
> As an alternative, a search on code.dlang.org turned up this 
> lib:
>
> http://code.dlang.org/packages/dotenv

Awesome. I will take a look definitely. I have a similar way in 
my NodeJS team :D


More information about the Digitalmars-d-learn mailing list