|  |  | Warp wrote:
>   Uh, I was comparing Java interfaces with C++ classes with only pure
> virtual functions and no member variables. That's exactly what I asked:
Oh. I was referring to the benefits of
"""
I'll also note there's a bunch of benefits to doing it the way Java does 
that C++ templates can't support
"""
I hadn't realized you'd changed subjects.
> What is the difference between these two things? You responded with what
> I quoted first above.
Pretty much the same benefits. Separate compilation with strong typing, 
and dynamic loading with strong typing. Again, there's nothing really 
*stopping* a C++ compiler from doing strong typing for compilation and 
dynamic loading - it just isn't part of the language. (I.e., in the same 
way that nothing stops C++ from having threads, but it isn't part of the 
language you can count on.)
-- 
   Darren New / San Diego, CA, USA (PST)
     Remember the good old days, when we
     used to complain about cryptography
     being export-restricted?
Post a reply to this message
 |  |