Path: utzoo!utgpu!attcan!uunet!steinmetz!davidsen From: davidsen@steinmetz.ge.com (William E. Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: Declaration puzzler (another old question?) Message-ID: <12309@steinmetz.ge.com> Date: 5 Oct 88 14:45:25 GMT References: <30091@oliveb.olivetti.com> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 18 In article <30091@oliveb.olivetti.com> chase@orc.olivetti.com (David Chase) writes: | I can't figure out how to declare the type of an array with (say) 10 | elements, each of which is that array type. That is, I want the | non-error effect of | | typedef foo *(foo[10]); why not: typedef int foo[10]; typedef foo *bar; Perhaps that will do what you want to do, if not the way you want. The token after the 'typedef' must be a type, and it seems that foo doesn't become a type until after compilation of the typedef. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me