[haiku-development] Re: Can we make BObjectList public?

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 19 Jan 2011 14:17:30 +0100 (MET)

Ingo Weinhold<ingo_weinhold@xxxxxx> wrote:
> On 2011-01-18 at 14:34:01 [+0100], Oliver Tappe <zooey@xxxxxxxxxxxxxxx> 
> wrote:
> > So, is there anything that speaks against making BObjectList public?
> The interface needs revision. The base class _PointerList_ is really ugly. 
> The class (like BList) is misnamed IMO. All that doesn't exactly speak 
> against making it public, but it should at least marked obsolescent at the 
> same time.

I would just make it public as is now, and phase it out with the GCC4 API 
switch.

> Eventually we should introduce a well thought out template library.

Definitely.

> > Along the same lines: do you think the std::vector/map/list classes are
> > safe to use in a public Haiku C++ header, esp. with respect to binary
> > compatibility?
> I guess with gcc 2 it is safe as we're probably not going to change 
> anything there. I couldn't find helpful hints regarding libstdc++-v3 binary
> compatibility. So I guess the safest choice is not to rely on it.

Same thoughts here.

Bye,
   Axel.


Other related posts: