TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mario Semo
from: Jonathan de Boyne Pollard
date: 1994-10-07 05:04:08
subject: Som Of The Time

ZZ>
  >   >> one of the big drawbacks of C++
  >   >> is that you almost always have to have the source to
extend a class.
  >
  > thats not true. just put your class into a DLL and _Export
  > it. The client just needs the header file.
ZZ>

  AHEM!

ZZ>
  > ok. you must have the same compiler & compiler version ...
ZZ>

  Precisely.  (That mechanism is not universally available on all
  compilers, either.)

  Anyway, class libraries are written for OTHER PEOPLE to use.

  If I compile my classes on Borland C+ 1.5 and you use IBM CSet++ 3.0,
  we are stuck for using each others' classes, be they in DLLs or not.

  Even though Borland C++ has the ability to apply the __export keyword
  to a whole class, it only works when called from an application
  written in Borland C++, and only *that* version of Borland C++.

  Also, the implementation of the virtual function tables and the
  calling conventions (CSet++ uses _Optlink for member functions), mean
  that we cannot even exchange object code; we *must* exchange source to
  use each other's class libraries.

ZZ>
  >  JdeBP> After all, if you (as a library vendor) give me a header file and a
  >  JdeBP> DLL, I can use, subclass, and generally mess about with your classe
  >  JdeBP> without the source, if they are SOM classes.
  >
  > thats exactly as in C++.
ZZ>

  Except that in C++ it's not implemented in a fashion useful to anyone
  in the real world.

  Whereas SOM classes were designed to be portable across compilers (and
  even across languages).

  > JdeBP <
___
 X MegaMail 2.10 #0:
--- Maximus/2 2.01wb

* Origin: DoNoR/2,Woking UK (0483-725167) (2:440/4)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 440/4 141/209 270/101 396/1 3615/50 229/2 12/2442 711/409 54/54
@PATH: 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.