D2 port of Sociomantic CDGC available for early experiments
Leandro Lucarella via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Sun Oct 12 04:17:28 PDT 2014
Walter Bright, el 11 de October a las 20:41 me escribiste:
> On 10/11/2014 4:23 PM, Leandro Lucarella wrote:
> >It basically defines a bunch of environment variables and run the
> >binary. This is a super common practice in posix systems. We are not
> >inventing anything here. I don't know how windows or other OSs deal with
> >defining environment variables in a script.
> >
> >Very basic facilities are always configured this way, for example try
> >man 3 mallopt to see how can you change options in the malloc
> >implementation using environment variables...
>
> I don't deny it is common practice on Linux, but defining a bunch of
> environment variables and then running the app, i.e. using the ev's
> as command line switches, seems pointless. Just use command line
> switches.
Besides the extra flexibility, as mentioned many times, historically
command-line parsing is supposed to be owned by the user's code.
Libraries and runtimes are configured via environment variables. So, is
more flexible and is what a Linux user would expect.
> Anyhow, environment variables are a common source of problems on
> Windows, which is why dmd, for example, uses dmd.conf instead.
Fair enough, then maybe we should support them only on posix systems.
--
Leandro Lucarella (AKA luca) http://llucax.com.ar/
----------------------------------------------------------------------
¿Cómo estais? ¿Cómo os senteis hoy 29 del membre de 1961 día en que
conmemoreramos la nonésima setima nebulización del martir Peperino
Pómoro junto al Rolo Puente en la ciudad de Jadad?
-- Peperino Pómoro
More information about the Digitalmars-d-announce
mailing list