Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Struct definition in MS-C Message-ID: <10794@smoke.BRL.MIL> Date: 21 Aug 89 19:35:52 GMT References: <680010@hpmwjaa.HP.COM> <1575@dsacg3.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 In article <1575@dsacg3.UUCP> nts0302@dsacg3.UUCP (Bob Fisher) writes: >I doubt it. struct node cannot include itself in its own definition. Recursive declarations are prohibited, but it is perfectly legitimate to include a pointer to the same structure as one of its members. The structure tag is in scope, and since all structure pointers smell alike, the compiler should have no difficulty in dealing with this common case (which is much like examples used in K&R and other good C programming textbooks). The C Standard requires that this usage be supported. >Try swapping the last two lines like this. Thereby producing something totally unusable for his purposes??