Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.lang.c Subject: Wanted: information on compilability of "switch (long)" Message-ID: <6190@elsie.UUCP> Date: Fri, 25-Jul-86 17:35:24 EDT Article-I.D.: elsie.6190 Posted: Fri Jul 25 17:35:24 1986 Date-Received: Fri, 25-Jul-86 21:59:32 EDT Organization: NIH-LEC, Bethesda, MD Lines: 25 Keywords: C switch long Someone wrote me today about an illegal operand of "switch()" message that was produced when compiling code of mine of this ilk: subr(l) long l; { switch (l) { ... } } I'd like to know how other compilers (and lints) react to switches on longs. I already know what K&R, H&S, and the tentative conditional draft proposed ANSI C standard have to say; I'm interested in learning what happens in the real world. The information will tell me whether it's wise to have "lint" check for such code when lint is used in its "portability mode." If you have the information I'm after, please mail me a response. Thanks. -- Return is part of a LucasFilm trademark. -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.