From Darin McBride · 1996-04-05 02:28 · #73614 in EMULATE
JC> On (01 Apr 96) Ed Beroset wrote to Darin McBride...
DM> inline ostream& operator << (ostream& os, cchar& cc)
DM> {
DM> return os << cc.pchar;
DM> }
EB> Since you already have a cast from cchar to const char * defined, you
EB> don't really need this, do you?
JC> Probably not, but if I had a choice of which to retain and which to
JC> eliminate, I'd keep this and eliminate the cast to const char *. IMO,
JC> it's preferrable to keep a string as a string as much as possible, and
JC> treat it as an array of characters only when you have no other choice.
Again, this is exactly the opposite of the intended use - the string class is quite complete as it is on my compilers (Watcom and EMX), and thus emulating it would be a little unnecessary.
--- Maximus/2 3.01
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)