[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Devel] C++ API for FreeType - Portability
From: |
Graham Asher |
Subject: |
RE: [Devel] C++ API for FreeType - Portability |
Date: |
Fri, 11 Jan 2002 20:23:24 -0000 |
Ed Keith said
<<<<<<
Mozilla's C++ Portability Guide* is a good place to start
>>>>>>
Ed, one other point:
The Mozilla porting guide at http://mozilla.org/hacking/portable-cpp.html is
an excellent document but rather out of date. I really think the situation
has improved a lot since it was written. For example, it says 'The Visual
C++ 1.5 compiler for windows is really flaky, and putting constructors into
the headers seems to be one of the causes of mysterious internal compiler
errors'. Well, I haven't seen Visual C++ 1.5 since about 1995. (I am on
version 6 and well out of date myself.)
Some rules I agree with:
don't use exceptions
don't use RTTI
don't use namespace
don't put extra top-level semicolons in code (I have *never* seen this in my
life, and I have looked at an awful lot of C++ code - but don't do it.)
don't mix varargs and inline (but who the hell uses varargs - this stuff is
prehistoric, and has no place in libraries like FreeType)
be careful of scoping of variables declared inside for( ... ).
But there is a lot of dross. Let's not get into arguing about this. It can
be sorted out if and when any C++ porting is done.
Graham
- Re: [Devel] 2.1.0 branch created, (continued)
- Re: [Devel] 2.1.0 branch created, Artur Zaprzala, 2002/01/11
- Re: [Devel] 2.1.0 branch created, David Turner, 2002/01/11
- [Devel] C++ API for FreeType, Graham Asher, 2002/01/11
- Re: [Devel] C++ API for FreeType, David Turner, 2002/01/11
- RE: [Devel] C++ API for FreeType, Graham Asher, 2002/01/11
- RE: [Devel] C++ API for FreeType, Pavel Kankovsky, 2002/01/13
- RE: [Devel] C++ API for FreeType - erratum, Graham Asher, 2002/01/11
- RE: [Devel] C++ API for FreeType, Graham Asher, 2002/01/11
- Re: [Devel] C++ API for FreeType - Portability, Ed Keith, 2002/01/11
- RE: [Devel] C++ API for FreeType - Portability, Graham Asher, 2002/01/11
- RE: [Devel] C++ API for FreeType - Portability,
Graham Asher <=
- RE: [Devel] C++ API for FreeType - Portability, Ed Keith, 2002/01/11
- RE: [Devel] C++ API for FreeType - Portability, Graham Asher, 2002/01/11
- Re: [Devel] C++ API for FreeType - Portability, Vadim Plessky, 2002/01/12
- RE: [Devel] C++ API for FreeType - Portability, Manuel Bleichenbacher, 2002/01/11
- Re: [Devel] C++ API for FreeType - Portability, Vadim Plessky, 2002/01/12
- Re: [Devel] 2.1.0 branch created, Werner LEMBERG, 2002/01/11
- Re: [Devel] 2.1.0 branch created, Henrik Grubbström, 2002/01/11
- Re: [Devel] 2.1.0 branch created, Pavel Kankovsky, 2002/01/13
RE: [Devel] 2.1.0 branch created, Boris Letocha, 2002/01/11