indent style for D

Stewart Gordon smjg_1998 at yahoo.com
Sun Jan 29 08:52:37 PST 2012


On 29/01/2012 14:17, bearophile wrote:
> Denis Shelomovskij:
>
>> Am I mistaken? If no, am I missing some major spaces advantages? If no,
>> lets use tabs.
>
> D2 style guide should *require* D2 to be edited using a mono-spaced
> font, and the D2 front-end should enforce this with a "-ms" compiler switch.

What do you mean by the "D2 front-end"?  The compiler front-end, or some IDE?

If you're talking about the compiler, how will it determine what font was set in the 
program used to edit the file?  Are you planning to make this work even if the file has 
been edited in more than one editor and/or font over the course of time?

If you mean an IDE, what use would a compiler switch be?  Just set up the font selection 
UI to allow only monospaced fonts to be selected.  In Windows at least, the font common 
dialog has a flag to do this.

Stewart.


More information about the Digitalmars-d mailing list