Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!caip!clyde!cbatt!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!uiucdcsb!robison From: robison@uiucdcsb.CS.UIUC.EDU Newsgroups: net.lang.c Subject: Re: Any GOOD reason for C's behaviour i Message-ID: <139200033@uiucdcsb> Date: Wed, 23-Jul-86 21:08:00 EDT Article-I.D.: uiucdcsb.139200033 Posted: Wed Jul 23 21:08:00 1986 Date-Received: Fri, 25-Jul-86 07:07:45 EDT References: <1080@ttrdc.UUCP> Lines: 16 Nf-ID: #R:ttrdc.UUCP:1080:uiucdcsb:139200033:000:465 Nf-From: uiucdcsb.CS.UIUC.EDU!robison Jul 23 20:08:00 1986 Your compiler is broken according to K&R, section 2.7 (page 42): ``In the construction (type-name) expression the expression is converted to the named type by the conversion rules above. The precise meaning of a cast is in fact as if expression were assigned to a variable of the specified type, which is then used in place of the whole construction.'' Your two programs should behave identically. Arch D. Robison University of Illinois at Urbana-Champaign