Set global immutables from main/getopt?

Ali Çehreli acehreli at yahoo.com
Tue Jan 28 10:56:35 PST 2014


On 01/28/2014 10:41 AM, Stanislav Blinov wrote:
> On Tuesday, 28 January 2014 at 18:30:37 UTC, Steven Schveighoffer wrote:
>> On Tue, 28 Jan 2014 12:27:02 -0500, Stanislav Blinov
>> <stanislav.blinov at gmail.com> wrote:
>>>
>>> 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.
>>
>
> Ahem. There was a link to dpaste :D

On a side note, dpaste is not associated with newsgroups. It can 
disappear at any time in the future. I like seeing and showing code in 
message bodies both for convenience and future availability. :)

Ali



More information about the Digitalmars-d-learn mailing list