Fortran

From: Sean 'Captain Napalm' Conner <spc_at_conman.org>
Date: Fri Feb 28 09:42:01 2003

It was thus said that the Great "Fred Cisin (XenoSoft)" once stated:
>
> APL doesn't care.
>
> C is certainly NOT column sensitive, EXCEPT that many/some compilers
> demand that pre-processor directives (#define, #include) be left
> justified.

  True to an extent, but even modern C compilers expect the '#' to be in the
first column, while the rest of the directive can be indented, so my code
(when I nest directives) tend to look like:

#ifndef CGILIB
# ifdef DDT
# define D(x) x
# else
# define D(x)
# define NDEBUG
# endif
# include <assert.h>
# define ddt assert
# ifndef FALSE
# define FALSE 0
# endif
# ifndef TRUE
# define TRUE !FALSE
# endif
#else
# include "types.h"
# include "ddt.h"
#endif

(The code this was pulled from can be used stand alone (where I define some
constants) or used in a much larger project (where the defines I do define
here are defined in types.h and ddt.h)).

  I find this easier to follow then if everything was flushed left.

  -spc (And aren't most assemblers column sensitive too?)
Received on Fri Feb 28 2003 - 09:42:01 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:35:57 BST