instead of cast(char*[])args.map!(arg=> arg.toStringz).array ~ null; which I'm pretty sure is wrong because a blind cast of args to char*[] is actually going to give .lengths in place of .ptrs since int[].length.offsetof == 0`.
https://dlang.org/phobos/core_runtime.html#.Runtime.cArgs
instead of
cast(char*[])args.map!(arg=> arg.toStringz).array ~ null;which I'm pretty sure is wrong because a blind cast ofargstochar*[]is actually going to give.lengths in place of.ptrs since int[].length.offsetof == 0`.https://dlang.org/phobos/core_runtime.html#.Runtime.cArgs