From: "Tom Demmer" Organization: Lehrstuhl Stroemungsmechanik, RUB To: Peter Palotas , djgpp AT delorie DOT com Date: Sun, 8 Mar 1998 21:19:12 GMT-1 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: MSS 10B Reply-to: Demmer AT LStM DOT Ruhr-Uni-Bochum DOT De Message-ID: <3FB9FD451AD@brain1.lstm.ruhr-uni-bochum.de> Precedence: bulk Peter Palotas wrote: > Hi Tom, > > >Peter, > >bad news, your program does not work together with > >TurboVision. Programs using TV fail to compile, > >I get a syntax error where TV overloads the new[] > >operator > > I guess I forgot to mention this problem in the documentation. > For the new[] operator overload I have no concrete solution yet, because > MSS needs to overload the new operator itself, and there will be a > conflict. I will try to find a solution as soon as possible though. I don't > think there will ever be a really GOOD solution for this though. Odd. I wonder if there _can_ be any. > > > >, and when a member function is called > >"free". Any ideas how to cure that? > > Well, this is because MSS #defines a macro `free to get the > functionname/filename/linenumber information about the call to free, since > it's not possible to overload that function in any way. If you are not > using (or Turbo Vision is not using) the C library free() function, try > commenting out the #define free... line in `mss.h or put an #undef free > right after the #include line in all your source files. I think this can be cured most times by including mss.h after tv.h. After a quick glance through tv.h, this is only used in one stream object, so it doesn't hurt, unless I want to have a descendant of that class in my sources that overwrites this method. [...] Ciao Tom ****************************************************************** * Thomas Demmer * Phone : +49 234 700 6434 * * Universitaetsstr. 150 * Fax : +49 234 709 4162 * * Lehrstuhl fuer Stroemungsmechanik * * * D-44780 Bochum * * ****************************************************************** * Email: demmer AT LStM DOT Ruhr-Uni-Bochum DOT De * * WWW: http://www.lstm.ruhr-uni-bochum.de/~demmer * ****************************************************************** When I die I'd like to go like my grandfather, peaceful in his sleep. Unlike the passengers in the car he was driving.