Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!uw-beaver!sumax!amc-gw!pilchuck!dataio!gtenmc!csp From: csp@gtenmc.UUCP (Charudutta S. Palkar) Newsgroups: comp.lang.c Subject: Ambiguities Message-ID: <862@gtenmc.UUCP> Date: 11 Sep 90 18:03:25 GMT Reply-To: csp@gtenmc.UUCP (Charudutta S. Palkar) Organization: GTE Telecom, Inc. Bothell, WA Lines: 37 > >In article <861@gtenmc.UUCP> you write: > >> b ) a = a - ( b = ( a = a + b ) - b ); > ^ >??? Is there any way you can guarantee the value of the marker 'a'? >It could have (a) the value of 'a' immediately before the statement >is executed, or (b) the value generated by innermost (a = a + b). > >> b ) a = a ^ ( b = b ^ ( a = a ^ b )); > >Same problem here. >.... > >Anders Thulin ath@prosys.se {uunet,mcsun}!sunic!prosys!ath I am aware of this , but the point I would like to raise :- Does C mention , which instance of the variable should be used , while evaluating the expression. If neither K&R C or ANSI C specify it. I propose that such a standard be set, for one it will help removing ambiguities of evaluation ( implementation dependencies ). Some may get the impression I am for cryptic code. No I am not for cryptic code but for use of the language with all its features. If some programmers cannot use its features they might as well stop using it. C S Palkar csp - csp@gtenmc.gtetele.com csp@gtenmc.UUCP " I speak only for myself " K&R C > ANSI C