How to modify process environment variables
Rene Zwanenburg
renezwanenburg at gmail.com
Tue Oct 17 08:42:09 UTC 2017
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
More information about the Digitalmars-d-learn
mailing list