R
Roland Pibinger
Some years back I worked on a multi-threaded C++ app. I wrote C++ versions of
Java's Thread and Runnable classes for it, based on a freely-available
pthreads library.
It turned out that it was tricky to get the semantics to match, in part
because a C++ reference (type&) is not the same as a Java reference.
A Java reference is largely the same as a C/C++ pointer whereas C++
references are 'real' references.
There can be a distinct value to having Java-like libraries in C++.
I agree with that. There isn't much activity in this regard any more,
though (and in C++ in general), see e.g.
http://doc.trolltech.com/qq/qq12-qt4-iterators.html