[haiku-development] Re: BFlattenable BStringList? Was: Re: [haiku] Fetching mail via pop3 from GMail

  • From: "Ingo Weinhold" <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 14 Dec 2011 00:43:13 +0100

John Scipione wrote:
> On Tue, Dec 13, 2011 at 5:22 PM, Rene Gollent <anevilyak@xxxxxxxxx> wrote:
> > On Tue, Dec 13, 2011 at 5:11 PM, Clemens <clemens.zeidler@xxxxxxxxxxxxxx>
> > wrote:
> > > The problem is the public BStringList is not BFlattenable. Think it makes
> > > sense to flatten a BStringList but can this be done compatibly wise?
> >
> > I may be remembering wrong, but I don't think BStringList was part of
> > the R5 API so it should still be ok to extend/modify it prior to R1.
> 
> Tracked down the history of the BStringList class a bit. The BStringList
> class in Mail was originally derived from Mail Daemon Replacement (
> http://haikuware.com/remository/view-details/internet-network/email/mail-daemon-replacement)
> and was imported into the OpenBeOS tree in 2004. Then it looks like Ingo
> needed the class for PackageManager so copied the class over to the support
> kit in July 2011.

I didn't copy the MDR one. I would never have suspected to find one there 
(being a public header). Moreover my implementation makes use of BString 
consequently and benefits from its copy-on-write functionality.

CU, Ingo

Other related posts: