Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!gatech!bloom-beacon!bu-cs!m2c!frog!john
From: john@frog.UUCP (John Woods, Software)
Newsgroups: comp.lang.c
Subject: Re: Was that a Sun bug?
Message-ID: <1517@frog.UUCP>
Date: Mon, 20-Jul-87 21:32:00 EDT
Article-I.D.: frog.1517
Posted: Mon Jul 20 21:32:00 1987
Date-Received: Wed, 22-Jul-87 07:32:02 EDT
References: <1429@cci632.UUCP>
Organization: Superfrog Heaven [ CRDS, Framingham MA ]
Lines: 29
Keywords: bug comparison Sun Parallel

In article <1429@cci632.UUCP>, mark@cci632.UUCP (Mark Stevans) writes:
> The current miasma of text in comp.lang.c reminds me of a bug I saw last
> year on a Parallel Computers 4.2bsd system.
> 	foo()
> 	{	char c = 2;
> 		if (c == 2)		printf("c is equal to 2\n");
> 		if (c == (2 + 1024))	printf("c is also equal to 1026\n");
> 	}	
>when compiled with Parallel's C compiler would print both messages...
> The Parallel "guru" didn't seem interested in looking
> at this.  He hinted that I should read K&R, which annoyed me considerably.
> 
> 					Mark "Imagining" Stevans
> 					cci632!mark
Yes, you should definitely read K&R.  For example,

"6.1 Characters and integers
    A character or a short integer may be used wherever an integer may be
used.  In all cases the value is converted to an integer." (page 183 of
the Holy Writ)

You should take a standard head-alignment tool (15 pound crowbar) and a copy
of K&R with you to your next talk with said ``"guru"''.

--
John Woods, Charles River Data Systems, Framingham MA, (617) 626-1101
...!decvax!frog!john, ...!mit-eddie!jfw, jfw%mit-ccc@MIT-XX.ARPA

Doktor of the Forbidden Sciences