June 13, 2002
"Matthew Wilson" <dm@synesis-group.com> wrote in message news:ae8hdb$1duq$1@digitaldaemon.com...

> Don't like it. I think a command-line option is better than this.
>
> Never been a fan of having stuff in the code that pertains to environment
/
> user choices (such as #pragma comment(lib: etc. etc)

But it is at least a _standard_ way of doing it, compatible across
platforms,
and partially eliminating the need for makefiles. Another programmer would
just compile the program with a single call to dmd, and you don't have to
write makefiles or bat-files..


June 13, 2002
True

"Pavel Minayev" <evilone@omen.ru> wrote in message news:ae9hrv$2ica$1@digitaldaemon.com...
> "Matthew Wilson" <dm@synesis-group.com> wrote in message news:ae8hdb$1duq$1@digitaldaemon.com...
>
> > Don't like it. I think a command-line option is better than this.
> >
> > Never been a fan of having stuff in the code that pertains to
environment
> /
> > user choices (such as #pragma comment(lib: etc. etc)
>
> But it is at least a _standard_ way of doing it, compatible across
> platforms,
> and partially eliminating the need for makefiles. Another programmer would
> just compile the program with a single call to dmd, and you don't have to
> write makefiles or bat-files..
>
>


June 16, 2002
if there's going to be any option settings I like the openGL way.

glEnable/glDisable;

would be something lie

dEnable(D_STRICT_BOOL);
    if (a) { .... }
dDisable(D_STRICT_BOOL);

I treat them as a code block so I indent the middle. OpenGL also can push/pop these values on the stack, but I thing that would probably would give the complier a headake.

Or parhaps

dEnable (D_STRICT_BOOL)
{


}

But I'm talking in a general sense; if there were any optional things in d. The d format should probably be worked out first though.

"Pavel Minayev" <evilone@omen.ru> wrote in message news:ae6voa$1ifk$1@digitaldaemon.com...
> "Matthew Wilson" <dmd@synesis.com.au> wrote in message news:ae5rej$djr$1@digitaldaemon.com...
>
> > Fair enough.
> >
> > Then let's have maximal pedantic built-in!
>
> Nooooo!!! =)
>
> Let's better have some way to move switches inside the programs, like VB's OPTION statement.
>
>     int a;
>     option strictbool = true;
>     if (a) { ... }   // error!
>     option strictbool = false;
>     if (a) { ... }   // okay
>
>
>


1 2 3 4
Next ›   Last »