Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mcvax!ukc!its63b!hwcs!zen!vic From: vic@zen.UUCP (Victor Gavin) Newsgroups: comp.lang.c Subject: Re: enum type Message-ID: <634@zen.UUCP> Date: Sat, 22-Aug-87 14:13:26 EDT Article-I.D.: zen.634 Posted: Sat Aug 22 14:13:26 1987 Date-Received: Sun, 23-Aug-87 21:44:22 EDT References: <2048@umn-cs.UUCP> <6311@brl-smoke.ARPA> Reply-To: vic@zen.UUCP (Victor Gavin) Organization: Zengrange Limited, Leeds, England Lines: 36 I have recently been using Microsoft C 4.00 and came across a situation involving enums which the compiler complained about but which had worked on the other C compiler I use regularly (HP 9000 series 500). I have a boolean decleration thus enum BOOLEAN { false = 0, true = 1}; typedef enum BOOLEAN boolean; and when used so boolean fini = false; while ( !fini ) {...} the MSC compiler complains "'!' : illegal with enums" and "'!' : bad right operand" What I'd like to know is if I'm doing something wrong or if the MSC compiler is goofy. vic -- Victor Gavin Zengrange Limited vic@zen.co.uk Greenfield Road ..!mcvax!ukc!zen.co.uk!vic Leeds LS9 8DB +44 532 489048 England