Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!vrdxhq!bms-at!stuart From: stuart@bms-at.UUCP (Stuart D. Gathman) Newsgroups: comp.lang.c Subject: Re: what "cast" means Message-ID: <473@bms-at.UUCP> Date: Tue, 11-Aug-87 12:59:07 EDT Article-I.D.: bms-at.473 Posted: Tue Aug 11 12:59:07 1987 Date-Received: Fri, 14-Aug-87 00:36:21 EDT References: <263@auvax.UUCP> <1987Jul9.162103.1701@sq.uucp> <243@wrs.UUCP> <3671@ecsvax.UUCP> Organization: Business Management Systems, Inc., Fairfax, VA Lines: 26 Summary: reading parenthesis In article <3671@ecsvax.UUCP>, uccjcm@ecsvax.UUCP (Jonathon C. McLendon IV) writes: > In article <2817@psuvax1.psu.edu>, okunewck@psuvax1.psu.edu (Philip E. OKunewick) writes: > > ( ! = logical not; ] = logical implication; ^ = logical or ) > > The first statement can be written as: > > !(!(looking like pascal) ] (a language deficency)) > This is wrong! This statement can be simplified to: > (looking like pascal) ] !(a language deficiency) > which is clearly NOT the first statement. > What you really want as the first statement is: > !(looking like pascal) ] !(a language deficiency) Look carefully at the parenthesis. The original poster is correct. !(!(looking like pascal) ] (a language deficency)) ^ ^ | | | +----- negates "looking like pascal" +------- negates the ']' operator: "is" -> "is not" -- Stuart D. Gathman <..!{vrdxhq|dgis}!bms-at!stuart>