Am Thu, 04 Feb 1999 schrieben Sie:
Hallo, Stephan!
Linking OOP-ObjectPascal-Progs to (shared) C++-Libs ! Of course you can't use templates and exceptions and so on, but it would be really useful.
You already can do that if you write a wrapper that translates the linker names of Pascal methods to C++ member functions or vice versa.
If someone knows the exact, non-changing naming conventions for C++ member functions we can discuss about making them the default for Pascal as well. But right now it is really simple to write or to access Pascal methods in plain C which is an adventage, too.
Sorry I use an new Mailprog and forgot the Subject :( But what I really meant was a _easy_ way to program ObjectPascal in an C++-Library-Enviroment, also with a tool converting C++-Headers with all Objects to units. I dont know, perhaps this is already possible _without_ hacking, but this would also make OO-Pascal Programming much more useful and acceptible in an Unix-Enviroment. Especially for programming GUI, distributed objects and so on... You know, C++ _seems_ to replace C in such parts of software development, so the Pascal<->C-Interface is perhaps not enough. C++ is also more difficult than C, and can be very complex if you use all the features of this language. So people use Java. But this are only thoughts, maybe no one would really use this. And of course if you can only access such things, which are possible in Pascal, so perhaps you cant't use all of the classes of such a lib, and this makes it worthless.
Gruß, Stephan