forward declared structures

jwp at sdchema.UUCP jwp at sdchema.UUCP
Sun Aug 5 01:09:36 AEST 1984


In article <2263 at saturn.UUCP> miller at saturn.UUCP (Terrence C. Miller) writes:
>K&R may say that the short form of the declaration may be only used
>for subsequent occurrances of the tag but those of us who write code
>which looks like:
>
>     struct a { struct b *pb;
>		....
>	      };
>
>     struct b { struct a *pa;
>		....
>	      };
>
>would be very upset if the compiler enforced that restriction.

*Lots* of things would be upset if that wasn't legal code.  I guess the
question now is:  What is the new standard going to say about this?



More information about the Comp.lang.c mailing list