[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: usage of reserved C++-keyword in cthreads.h



On Tuesday 12 February 2002 03:34, Thomas Bushnell, BSG wrote:
> I think that using #include <cthreads.h> in a C++ program is wrong for
> exactly the same reasons that using it in a Pascal program would be
> wrong.
Just a short quote from the 'Mach 3 server writer's guide', page 6:
>>>>
Given that most servers are not written in parallel or task-ing languages, 
the C threads package is provided. This package, discussed in this volume, 
supports multi-threaded programming in the C (or C++) language. 
<<<<<

Sad but true, it doesn't support nowaday's C++, C++ has gone far from what it 
probably was in the beginning of the nineties. However, I will try to hack 
this thing into form (the issues of renaming stuff that uses reserved 
keywords of C++ and some pointer-conversions that are not done without 
explicit cast by C++ are trivial to fix).
 I hope not to step on anyone's toes, but my personal opinion is that even if 
one doesn't care about C++, one can easily avoid it's additional reserved 
keywords, they are just a few.


uli



Reply to: