Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!galaxy.rutgers.edu!andromeda.rutgers.edu!pete From: pete@andromeda.rutgers.edu.rutgers.edu (Peter Farabaugh) Newsgroups: comp.lang.c++ Subject: Re: C++ textbooks (was: C++ design) Keywords: information Message-ID: Date: 22 Jun 89 00:51:33 GMT References: <9474@alice.UUCP> <916@tukki.jyu.fi> <137@ssp1.idca.tds.philips.nl> <550@cpsc6b.cpsc6a.att.com> Sender: news@galaxy.rutgers.edu Reply-To: pete@andromeda.rutgers.edu.UUCP (Peter Farabaugh) Organization: Rutgers University, Newark, NJ Lines: 70 In article <550@cpsc6b.cpsc6a.att.com> crs@cpsc6b.cpsc6a.att.com (Chris (HA!! I *KILL* me!!) Seaman) writes: >roelof@idca.tds.PHILIPS.nl (R. Vuurboom) writes: >< markku@jytko.jyu.fi (Markku Sakkinen) writes: >[ Discussion of confusing example 'cout << "Hello world\n";' ... ] > >[ Quote from BS ] >< The operator << ("put to"+) [Huh? put to what? Let me put this to you >< Stroustrup thats a damned left shift] writes its second argument >< [I don't see any arguments] onto its first [??? how do you write an >< argument _onto_ another argument?] ... > >Actually, referring to the '<<' as a left shift might have served to >make the example even MORE confusing :-). I say this because it alludes >to the 'C' use of the '<<' operator, which has no bearing on its function >here. Once an operator has been overloaded for a class, identifying it >by its 'standard' meaning does little or nothing to explain its overloaded >usage. > I think that referring to the << and >> operators as put to and get from is a good idea. Shift left and right is to confusing and less-than-sign- less-than-sign, greater-than-sign-greater-than-sign is stupid. Put to and get from are easy to say, learn , and understand the function of. [oops, ended a sentence with a preposition. awful isn't it?] Does any one have such a name for () and [] function-call-operator and subscripting-operator are plain ugly. Peter Farabaugh ****************************************************************************** "Women, can't live with 'em, can't shoot 'em!"--Stephen Wright ****************************************************************************** "When the world is running down, you make the best of what's still around" -The Police ****************************************************************************** _____________ From the dark recesses of the mind of |____ | __ | | | __| |___| Peter Farabaugh | |_____ | | <- My Mind ..topaz!andromeda!pete |____ |__ | (all this and a drop of Retsen) |___________| NET:..topaz!andromeda!pete USMAIL:519 Prospect St., Nutley, N.J. 07110 MA BELL: 201-667-3784 PLANET: Earth GALAXY: Milky Way ****************************************************************************** "What? Me have opinions? You must have me confused with someone else!" ****************************************************************************** ****************************************************************************** "Women, can't live with 'em, can't shoot 'em!"--Stephen Wright ****************************************************************************** "When the world is running down, you make the best of what's still around" -The Police ****************************************************************************** _____________ From the dark recesses of the mind of |____ | __ | | | __| |___| Peter Farabaugh | |_____ | | <- My Mind ..topaz!andromeda!pete |____ |__ | (all this and a drop of Retsen) |___________| NET:..topaz!andromeda!pete USMAIL:519 Prospect St., Nutley, N.J. 07110 MA BELL: 201-667-3784 PLANET: Earth GALAXY: Milky Way ****************************************************************************** "What? Me have opinions? You must have me confused with someone else!" ******************************************************************************