Article View: comp.sys.atari.st
Article #26927Re: Megamax bug or crappy C ?
From: tom
Date: Thu, 21 May 1987 13:24
Date: Thu, 21 May 1987 13:24
23 lines
1581 bytes
1581 bytes
In article <756@klipper.cs.vu.nl> tulp@cs.vu.nl (Tulp E) writes:
>if it was fixed in a newer release; I use Version 1.1), maybe this is just
>an example of bad C programming. I also tried this test with the Alcyon
<some deletes lines>
> array[i - 1] = array[i--] - 1; /* Trouble here. */
<some deletes lines>
> array[i + 1] = array[i++] + 1; /* And trouble here. */
lint test.c
test.c(11): warning: i evaluation order undefined
test.c(14): warning: i evaluation order undefined
Also K&R make it clear that the evaluation of the above code is
implementation dependent.
Tom Vijlbrief
=============================================================================
TNO Institute for Perception
(Netherlands organisation for applied scientific research)
Cognitive Psychology Research Group
P.O. Box 23 Phone: +31 34 63 14 44
3769 DE Soesterberg E-mail: tnosoes!cogpsi!tom@mcvax.cwi.nl
The Netherlands {seismo|...}!mcvax!tnosoes!cogpsi!tom
Technical Details
Message-ID:
<287@cogpsy.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mcvax!tnosoes!cogpsi!cogpsy!tomReferences:
<756@klipper.cs.vu.nl>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mcvax!tnosoes!cogpsi!cogpsy!tom From: tom@cogpsy.UUCP Newsgroups: comp.sys.atari.st Subject: Re: Megamax bug or crappy C ? Message-ID: <287@cogpsy.UUCP> Date: Thu, 21-May-87 09:24:08 EDT Article-I.D.: cogpsy.287 Posted: Thu May 21 09:24:08 1987 Date-Received: Sat, 23-May-87 01:39:58 EDT References: <756@klipper.cs.vu.nl> Reply-To: tom@cogpsy.UUCP (Tom Vijlbrief) Organization: TNO Institute for Perception, Soesterberg, The Netherlands Lines: 23