When using @nogc code and/or C standard library functions, accessing the standard C main arguments is useful. Unfortunately, cArgs is not @nogc:
---
import core.stdc.stdio;
import core.runtime;
@nogc:
void main()
{
// NG
printf("%s\n", Runtime.cArgs.argv[0]);
}
---
Comment #1 by github-bugzilla — 2015-11-18T14:56:27Z