[Haiku-commits] r21355 - in haiku/trunk: headers/os/interface src/kits/interface
Ingo Weinhold
bonefish at cs.tu-berlin.de
Sat Jun 9 22:01:38 CEST 2007
On 2007-06-09 at 21:30:28 [+0200], Axel Dörfler <axeld at pinc-software.de>
wrote:
> Ingo Weinhold <bonefish at cs.tu-berlin.de> wrote:
[...]
> > BTW, I'm generally not very fond of the PrintToStream() methods. I'd
> > rather
> > like to see a Java style "BString ToString()" or "void
> > ToString(BString&)"
> > method, or even a (non-member) "<<" BString operator.
>
> Definitely agreed; even a PrintToStream(int fd) would be much better,
> but I like your suggestions better. The << has the disadvantage of not
> being able to access any private data - if that really is a
> disadvantage in this use case (probably not with any sane class).
A member function the additional advantage, that we could make it virtual.
This way you can get a human-readable info for an object, of which you
don't even know the exact type.
CU, Ingo
More information about the Haiku-commits
mailing list