Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: Is typedef char BUFFER[20] legal?
Message-ID: <1991Feb3.000128.15980@zoo.toronto.edu>
Organization: U of Toronto Zoology
References: <1212@tredysvr.Tredydev.Unisys.COM> <1991Jan29.210100.8105@zoo.toronto.edu> <22642@netcom.UUCP>
Date: Sun, 3 Feb 1991 00:01:28 GMT

In article <22642@netcom.UUCP> avery@netcom.UUCP (Avery Colter) writes:
>My instinct right now is telling me that 
>
>typedef char[20] BUFFER
>
>is more consistent...

Nope, syntax error.  Typedef is semantically a special case, but not
syntactically:  a type declaration looks *exactly* like a declaration
of an ordinary variable except for that funny word "typedef" on the
front.
-- 
"Maybe we should tell the truth?"      | Henry Spencer at U of Toronto Zoology
"Surely we aren't that desperate yet." |  henry@zoo.toronto.edu   utzoo!henry
