Re: [Opalvoip-devel] More background on changing BOOL to bool
Brought to you by:
csoutheren,
rjongbloed
From: Derek S. <de...@in...> - 2007-11-19 20:51:49
|
Hi, I am happy with this change. It is a good move to adjust our code to better coincide with the C++ standard. If the compiler can spot more bugs, great. If the compiler can give smaller faster code, great. If it costs a bit of pain for us, sigh. As for the backwards compatibility, well, it is nice to have. But if it can't be achieved, remember the saying, "there is no gain without pain" Derek. On Mon, 19 Nov 2007, Craig Southeren wrote: > To all, > > Here is some background information on the proposed change of BOOL > to bool. > > We're trying to move PTLib closer to the C++ standard, including > STL, because that has many advantages. Not only will it reduce the size > of the code, and increases compatibility with other libraries, but it > will leverage off the enormous investment that other developers have > made into the standard libraries and will increase the usefulness of > PTLib by making the API less "proprietary" > > To do this, PTLib will require several changes. None of these will > come without pain, but it is my personal opinion that the advantages > will outweigh the disadvantages. These changes are: > > - Change BOOL to bool > - Change PString to use std::string in some way > - Change PArray to use std::vector, PDictionary to use std::map etc > > The change from BOOL to bool is probably the biggest change. We're > hoping that the rest of the changes can be done transparently, but I > think it is inevitable that there will be some API tweaks required. > > I'd be interested in hearing people's opinions on these thoughts, > especially if the general consensus is that it is not worthwhile. > > Craig > > ----------------------------------------------------------------------- > Craig Southeren Post Increment – VoIP Consulting and Software > cr...@po... www.postincrement.com.au > > Phone: +61 243654666 ICQ: #86852844 > Fax: +61 243656905 MSN: cra...@ho... > Mobile: +61 417231046 Jabber: cr...@ja... > > "Science is the poetry of reality." Richard Dawkins > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Opalvoip-devel mailing list > Opa...@li... > https://lists.sourceforge.net/lists/listinfo/opalvoip-devel > -- Derek Smithies Ph.D. IndraNet Technologies Ltd. Email: de...@in... ph +64 3 365 6485 Web: http://www.indranet-technologies.com/ |