delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/26/00:24:39

From: "Gordon Hogenson" <gordon AT yrd DOT chem DOT washington DOT edu>
Date: Wed, 25 May 1994 21:02:52 -0700
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Porting Dflat++ to DJGPP

I looked at Dflat++ and tried to port it.  It won't.  The reason
is that it relies heavily on pointer to member functions, in
particular casts of pointer to member functions.  Unfortunately,
the G++ pointer-to-member code is broken in version 2.5.7.
These are some of the same bugs that cause Fresco (part of X11R6)
not to compile with the current G++ under UNIX.  Supposedly this
has all been fixed and casts of pointers to members will work with
the next version of GCC/G++.

Dflat++ uses ptrs to member functions for all the menu-activated
commands.  I do the same in my code but I use a gross hack to work
around these bugs, but it requires declaring *all* function you
ever want to use in any menu in a class way, way up on the
inheritance hierarchy, as high as the highest menu-function you
ever use.  Doing this with Dflat++ would seriously lobotomize it.

Oh well...

--
----------------------------------------------------------------
Gordon J. Hogenson			Tel. (206) 522-5664 home
email: ghogenso AT u DOT washington DOT edu	     (206) 685-2951 work
finger: gordon AT yrd DOT chem DOT washington DOT edu	FAX: (206) 685-8665


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019