[Issue 11149] Runtime.args no longer available in static constructors.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 8 10:20:05 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11149
--- Comment #7 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-10-08 10:20:03 PDT ---
(In reply to comment #6)
> BTW, I don't that adding args/cArgs was a good idea in the first place.
Some libraries require the C arguments during initialization routines. If you
try to initialize such a library in a module constructor then core.runtime is
the only way of getting to the main() arguments.
(In reply to comment #6)
> how is mutating args reflected in main's args and vice versa.
It's not reflected since a copy is made in _d_run_main. But I guess this should
be documented.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list