🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java
Article #341

Re: Highlighted Stroustrup by Joy or van Hoff?

#341
From: Christopher League
Date: Wed, 06 Mar 1996 19:43
25 lines
1467 bytes
--------
In article <elharo-0603961030310001@elharo.dialup.inch.com>,
elharo@sunsite.unc.edu (Elliotte Rusty Harold) wrote:
> someone showed off his copy of the C++ Programming Language in which he
> was highlighting all the parts Java programmers didn't need to worry
> about. 

A neat idea...

Even before I had heard of Java, I thought about going through
Kernighan & Ritchie and hilighting every occurence of the word
"implementation-dependent".  I was most inspired to do it when I
discovered a "bug" that caused

	printf("%c%c%c", getchar(), getchar(), getchar());

to print "ABC" when compiled by gcc and "CBA" when compiled by
Borland.  (I typed ABC<Return><EOF> as input to both programs.) 

`Chris
--
_____
Christopher League		    league@cs.umd.edu
University of Maryland		    http://www.cs.umd.edu/users/league
Department of Computer Science	    PGP Public Key available
Technical Details
Message-ID: <LEAGUE.96Mar6144311@snocap.cs.umd.edu>
Path: arc1-ca.pugleaf.net!nntp.cs.umd.edu!league
References: <elharo-0603961030310001@elharo.dialup.inch.com> <tad1-0603961128020001@tad1.cit.cornell.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nntp.cs.umd.edu!league
From: league@cs.umd.edu (Christopher League)
Newsgroups: comp.lang.java,comp.lang.c
Subject: Re: Highlighted Stroustrup by Joy or van Hoff?
Date: 06 Mar 1996 19:43:11 GMT
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Message-ID: <LEAGUE.96Mar6144311@snocap.cs.umd.edu>
References: <elharo-0603961030310001@elharo.dialup.inch.com>
 <tad1-0603961128020001@tad1.cit.cornell.edu>
NNTP-Posting-Host: snocap.cs.umd.edu
In-reply-to: tad1@cornell.edu's message of Wed, 06 Mar 1996 11:28:02 -0500