Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!caip!brl-adm!brl-smoke!Schauble@MIT-MULTICS.ARPA From: Schauble@MIT-MULTICS.ARPA (Paul Schauble) Newsgroups: net.lang.c Subject: Crossing enumeration types Message-ID: <1202@brl-smoke.ARPA> Date: Sat, 7-Jun-86 18:07:06 EDT Article-I.D.: brl-smok.1202 Posted: Sat Jun 7 18:07:06 1986 Date-Received: Fri, 20-Jun-86 04:16:39 EDT Sender: news@brl-smoke.ARPA Lines: 22 Is this program legal according to s strict interpretation of the new ANSI standard? By common usage? Is this something lint should/does complain about? enum days {mon, tue,wed} day; enum colors {red,green,blue} color; main () { day = green; set_color (day); } set_color(thiscolor) enum colors thiscolor; {... } I expect at least two complaints about mixing types colors/days. Out there in the big cruel world, how often am I going to be disappointed? Paul Schauble at MIT-Multics.arpa