> > William Conrad Halliburton <[EMAIL PROTECTED]> writes:
 > >
 > > > How does C++ dyanamic dispatching
 > > > work and is it possible, with a pointer to a class, to call the
 > > > correct member functions?

 > On Thursday, Dec 18, 2003, at 23:19 America/New_York, James A. Crippen 
 > wrote:
 >
 > > I think that the dynamic dispatching stuff in C++ is compiler-dependent
 > > and hence you'd want to check the documentation for your particular
 > > compiler. Such info may not actually be available for most commercial
 > > compilers.

Marco Antoniotti writes:
 > 
 > Isn't demanglig compiler dependet as well?

We all (except maybe the OP) know the answer to this is, "yes," but
it's a lot easier to reverse engineer than dynamic dispatch.

Making Alien work with C++ ABIs would be very cool, especially on
Solaris (where stability is valued).  No matter the C++ vendor, the
concepts you'd want to expose to Lisp would be the same, so this
should be possible (if tedious to get working on a lot of systems).

William, in order for your question to be meaningful, you'll need to
say *exactly* what platform you're on -- OS, version, and compiler &
version.  Given the platforms CMUCL runs on, I'm guessing you're using
GCC or Forte (Sun C++).  If it's GCC, may god or have mercy on you --
or RMS, who would be more useful.  On Solaris, the C++ ABI is fairly
stable, and since C++ was finally standardized, it might stay that
way.  I worked on a proprietary CMUCL spinoff that targeted C++
linkage on Solaris and *one* combination of Linux, G++, and the C++
stdlib.

The following article should be a good starting point.  If I were you,
I'd learn about the Solaris ABI because it's documented and thought
out, whereas AFAIK GCC is just ad hoc.  After getting comfortable with
Solaris' weel defined ABI, you'll be in a better position to tackle
G++.

" Don't give me no bammer GCC we don't smoke that shit in the SF City. "
(Bonus points to anyone who knows that almost-quote :)

-- 
           /|_     .-----------------------.                        
         ,'  .\  / | No to Imperialist war |                        
     ,--'    _,'   | Wage class war!       |                        
    /       /      `-----------------------'                        
   (   -.  |                               
   |     ) |                               
  (`-.  '--.)                              
   `. )----'                               

Reply via email to