Path: utzoo!attcan!uunet!ncrlnk!ncratl!dspoon From: dspoon@ncratl.Atlanta.NCR.COM (Dave Witherspoon) Newsgroups: comp.lang.c++ Subject: Re: C++ for DOS/OS2 Keywords: C++ DOS OS/2 Message-ID: <989@ncratl.Atlanta.NCR.COM> Date: 22 Sep 89 17:56:04 GMT References: <293@softeng1.UUCP> <236@dbase.UUCP> <977@ncratl.Atlanta.NCR.COM> <6505@columbia.edu> Organization: NCR Corporation, E&M Atlanta Lines: 24 In article <6505@columbia.edu>, kearns@moritz.columbia.edu (Steve Kearns) writes: > Here is a nifty trick I use to get around the problem of > translators that generate names which are not unique in the first > 32 characters. > > If your class is called "BigString", then at the top of your > BigString.h file put > "#define BigString bS" > > This makes the internal name of BigString the much shorter name bS > and has always solved my problems. Thanks for the tip, Steve. You may be posting this when you saw my post on the problems I had with Glockenspiel's C++ translator. The problem I had had to do with overloading operator<< for an ostream. The names were almost completely out of my control, so I'm not sure that your trick would have helped me back then. In any case, I refuse to kluge around compiler problems that are 2 levels away (i.e., in the translator, once removed from the compiler). -------------------------------David Witherspoon------------------------------- D.Witherspoon@Atlanta.NCR.COM | "Dolphins find humans amusing, but NCR Retail Systems Development/Atlanta| they don't want to talk to them." MY OPINIONS...ALL MINE!!! | - David Byrne