Charles R Harris wrote: > > > This one <http://en.wikipedia.org/wiki/Indent_style#K.26R_style> > > int main(int argc, char *argv[]) > > { > ... > while (x == y) { > something(); > > somethingelse(); > if (some_error) > do_correct(); > > else > continue_as_usual(); > } > finalthing(); > > ... > } > > I'm a bit of a heretic myself, I always use braces in if statements, even for > one liners.
me too ( I believe it avoids mistakes when the one statement becomes 2 - although recent gcc may have a warning for that). I think I will use the same technique as R to detect those functions (because it may be a macro or a function; C99 says function, but old platform and the MS one do not have macro). cheers, David _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion