On Monday, 12 October 2015 at 15:38:27 UTC, ric maicle wrote:
I'm relearning D. I'm using the reference compiler (DMD) and I am a bit confused with how the compiler 'switches' are supposed to be used.

I find some 'switches' that require an equal (=) symbol when a value is required to be passed in.

-boundscheck=[on|safeonly|off]
-color[=on|off]
-conf=path

-debug
-debug=level
-debug=ident

But there are also 'switches' requiring a value that do not require/use the equal (=) symbol.

-Dddocdir
-Dffilename

-odobjdir
-offilename

I'm wondering if this small irregularity should be made consistent or maybe I misunderstood something.

Yeah, it is a bit confusing and should be tidied up (using the established deprecation path) really.

Reply via email to