[Issue 11191] New: Runtime.args may be called before set
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 7 12:31:43 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11191
Summary: Runtime.args may be called before set
Product: D
Version: D2
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: druntime
AssignedTo: nobody at puremagic.com
ReportedBy: code at dawg.eu
--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-10-07 12:31:41 PDT ---
Because initialization moved to C's .ctors/.dtors the runtime calls module
ctors before main. The global _d_args variable is only initialized in main so
calling Runtime.args earlier will return an empty array.
--
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