Set global immutables from main/getopt?

Steven Schveighoffer schveiguy at yahoo.com
Tue Jan 28 10:30:37 PST 2014


On Tue, 28 Jan 2014 12:27:02 -0500, Stanislav Blinov  
<stanislav.blinov at gmail.com> wrote:

> On Tuesday, 28 January 2014 at 17:11:43 UTC, Andrew Klaassen wrote:
>
> Naturally, initialize them in constructor :)
>
> http://dpaste.dzfl.pl/620e8c61

That being said, it *could* be done, since the runtime has access to the  
command line args. But the runtime would have to provide access to those  
parameters. But you'd have to do it in a static constructor.

-Steve


More information about the Digitalmars-d-learn mailing list