forward declared structures

mrm at datagen.UUCP mrm at datagen.UUCP
Sat Aug 4 23:08:34 AEST 1984

The current ANSI draft does allow forward declaration of the pointer of
structures, since that is the only way you can build tree and list
structures with different typed structures.  Even in pascal, which is
much stricter about things, had to allow the forward declaration of pointers.

However, I believe that when the structure is declared, it must be in the same
block as the forward declaration.  Also, this forward declaration requires
that all structure/union pointers have the same format (or at least occupy
the same amount of storage) -- this means on a word-addressing machine (like
the DG stuff, DEC-20, UNIVAC, etc.) an implementator cannot make a pointer
to a structure which only contains chars be a byte pointer.

With regard to ANSI committees requiring large IBM-ish staffs to produce an
ANSI compiler, I beleive that most of us are on rather small teams.  I
ceratainly wouldn't agree to anythi
certainly wouldn't agree to anything that required a massive staff (since I
only have myself and an employee supporting two compilers).

	Michael Meissner
	Data General Corporation
	...{ ihnp4, allegra, rocky2 }!datagen!mrm

More information about the Comp.lang.c mailing list