Path: utzoo!utgpu!watserv1!watmath!att!dptg!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c++ Subject: Re: attention C++ Language Lawyers! Keywords: typedef, bitfield Message-ID: <10896@alice.UUCP> Date: 4 Jun 90 03:28:05 GMT References: <157@logo.procase.UUCP> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 15 In article <157@logo.procase.UUCP>, roger@procase.UUCP (Roger H. Scott) writes: > Okay all you language lawyer types, here's a fun one for you. > Which, if any, of the following are legal? Which, if any, should be? > Why? > typedef unsigned GlobalBit : 1; This isn't legal C and shouldn't be legal C++. That renders all the following examples illegal too. Cfront naively accepts it; thanks for pointing it out. -- --Andrew Koenig ark@europa.att.com