[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Devel] C++ API for FreeType - Portability
From: |
Ed Keith |
Subject: |
RE: [Devel] C++ API for FreeType - Portability |
Date: |
Fri, 11 Jan 2002 13:11:10 -0800 |
Hi Graham,
wxWindows.org* offers another C++ portability guide to review. Templates and
STL are again brought up as issues, even mentioning troubles with gcc
(although they didn't mention a specific gcc version).
I'm not saying don't to switch to C++, you just need to be careful what C++
features are used to keep things portable. If/when a C++ approach is taken, a
similar documented "FreeType C++ Portability Guide" I think would be one of the
first items to address before getting to far along in the code.
Cheers,
Ed
*wxWindows.org C++ Portability Guide
http://www.wxwindows.org/standard.htm
At 12:23 PM 1/11/02, you wrote:
>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
>
>
>_______________________________________________
>Devel mailing list
>address@hidden
>http://www.freetype.org/mailman/listinfo/devel
- Re: [Devel] 2.1.0 branch created, (continued)
- 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, 2002/01/11
- RE: [Devel] C++ API for FreeType - Portability,
Ed Keith <=
- 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
RE: [Devel] 2.1.0 branch created, Boris Letocha, 2002/01/16