Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!pdn!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.lang.c++ Subject: Re: distinguishing operator[] on left and right Message-ID: <27D3E61F.6226@tct.uucp> Date: 5 Mar 91 18:40:30 GMT References: <1991Feb28.212419.20920@ndl.com> <1991Mar2.000705.3496@mathcs.sjsu.edu> Organization: Teltronics/TCT, Sarasota, FL Lines: 17 According to jar@ifi.uio.no (Jo Are Rosland): >I mean, a very popular first project (and perhaps second and third >:-)) after having learned C++, is to create some kind of string class. >But how many of those string classes are actually in use? We still use ours. The "a = b; a += c" syntax is a little awkward, but it's sure better than calculating sizes, calling new/delete and strcpy/strcat. Note, though, that a |String| is often implicitly converted to a |const char *| when used as a function parameter, since functions that expect strings may well be called with old-style C strings, and I don't want to construct a temporary |String| in such cases. -- Chip Salzenberg at Teltronics/TCT , "All this is conjecture of course, since I *only* post in the nude. Nothing comes between me and my t.b. Nothing." -- Bill Coderre