Mail Archives: djgpp/1998/03/08/15:20:48
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 <mss.h> 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.
- Raw text -