D2 port of Sociomantic CDGC available for early experiments
Rainer Schuetze via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Wed Oct 8 11:19:03 PDT 2014
On 08.10.2014 19:39, Walter Bright wrote:
> On 10/8/2014 12:43 AM, Leandro Lucarella wrote:
>> I think this is an unjustified fear, there are already many environment
>> variables that can affect your program. That's why they are called...
>> environment variables :)
>
> Being on the front lines of tech support for 30 years, it is not an
> unjustified fear nor a hypothetical problem.
>
> What you could do is propose a "secret" switch to all dmd generated
> programs that the druntime switch checks before main() gets control,
> such as:
>
> app --druntimeSet=usexxx ...the regular app args ...
>
We have app --DRT-gcopt=concurrent in gc.config now.
There is no perfect plan how an application can change the default
options that are used without arguments, though. Doing this in main() is
too late for some parameters (e.g. "precise"), because the GC will have
to be setup to execute "static this" and other library initialization
before reaching main.
More information about the Digitalmars-d-announce
mailing list