digitalmars.D.learn - Access program args outside of main
- Jordan Wilson (16/16) Oct 17 2018 Hello,
- Stanislav Blinov (3/4) Oct 17 2018 https://dlang.org/phobos/core_runtime.html#.Runtime
- Jordan Wilson (4/8) Oct 17 2018 Here I was looking through std...thanks mate.
Hello, Is there a way to access command line arguments outside of main? // main.d module main; import data; void main(string args[]) { } // data.d module data immutable programData; static this() { // read in data } Ideally, I'd check args before I take the time to load up data. Thanks, Jordan
Oct 17 2018
On Wednesday, 17 October 2018 at 22:30:31 UTC, Jordan Wilson wrote:Ideally, I'd check args before I take the time to load up data.https://dlang.org/phobos/core_runtime.html#.Runtime
Oct 17 2018
On Wednesday, 17 October 2018 at 22:37:53 UTC, Stanislav Blinov wrote:On Wednesday, 17 October 2018 at 22:30:31 UTC, Jordan Wilson wrote:Here I was looking through std...thanks mate. JordanIdeally, I'd check args before I take the time to load up data.https://dlang.org/phobos/core_runtime.html#.Runtime
Oct 17 2018