Delay function?

Steven Schveighoffer schveiguy at yahoo.com
Tue Sep 2 13:08:37 PDT 2008


"bearophile" wrote
> Brendan:
>> Oooooh, what a foolish mistake! How could I forget that? Thanks for 
>> pointing it out.
>
> It's a mistake, but in the past years I have seen several similar mistakes 
> in real programs written in C-like languages. That's why I'm a fan of 
> semantically significant indentations :-) (Or of a built-in lint-like 
> capability of the language that signals such indentation errors are syntax 
> errors).

Any reasonable syntax highlighting editor should show you that you forgot 
something.

In vim, if I forget something like this, the second statement's indent jumps 
back to the same level as the if statement, signalling that I forgot to add 
the curly brace.

-Steve 




More information about the Digitalmars-d-learn mailing list