Thread overview
DMD commandline bug
Jun 13, 2004
Hauke Duden
Jun 13, 2004
Mike Swieton
Jun 13, 2004
Hauke Duden
Jun 13, 2004
Walter
Jun 13, 2004
Vathix
June 13, 2004
The following commandline is not accepted by DMD

dmd -version=_UNICHAR_FAST_ unichar.d

The error message is:
"Error: unrecognized switch '-version=_UNICHAR_FAST_'"

But the commandline help lists the following switch:
"-version=ident compile in version code identified by ident"

So either the switch is not documented correctly or it is not parsed right.

Hauke
June 13, 2004
On Sun, 13 Jun 2004 13:37:59 +0200, Hauke Duden wrote:
> The following commandline is not accepted by DMD
> 
> dmd -version=_UNICHAR_FAST_ unichar.d

For some reason, the leading underscore is throwing it off. Otherwise, over here the behavior is reasonable.

Mike Swieton
__
You can have peace. Or you can have freedom. Don't ever count on having
both at once.
	- Lazarus Long (Robert A. Heinlein)

June 13, 2004
Mike Swieton wrote:

> On Sun, 13 Jun 2004 13:37:59 +0200, Hauke Duden wrote:
> 
>>The following commandline is not accepted by DMD
>>
>>dmd -version=_UNICHAR_FAST_ unichar.d
> 
> 
> For some reason, the leading underscore is throwing it off. Otherwise, over
> here the behavior is reasonable.

Ah. You're right, it does work without the underscore. Thanks.

So it really seems to be a bug in the commandline parsing.


Hauke
June 13, 2004
"Hauke Duden" <H.NS.Duden@gmx.net> wrote in message news:cai460$j5t$1@digitaldaemon.com...
> Mike Swieton wrote:
>
> > On Sun, 13 Jun 2004 13:37:59 +0200, Hauke Duden wrote:
> >
> >>The following commandline is not accepted by DMD
> >>
> >>dmd -version=_UNICHAR_FAST_ unichar.d
> >
> >
> > For some reason, the leading underscore is throwing it off. Otherwise,
over
> > here the behavior is reasonable.
>
> Ah. You're right, it does work without the underscore. Thanks.
>
> So it really seems to be a bug in the commandline parsing.

True, but also leading _ on identifiers are reserved in D.


June 13, 2004
> True, but also leading _ on identifiers are reserved in D.

"Identifiers starting with __ (two underscores) are reserved." A single leading underscore should work  :P