[interfacekit] [Fwd: Message submitted to 'interfacekit']
- From: Erik Jaesler <erik@xxxxxxxxxxxxxx>
- To: Interface Kit Team <interfacekit@xxxxxxxxxxxxx>
- Date: Thu, 10 Oct 2002 16:37:41 -0700
Yes, having similar functions bottleneck through a single function is
really the best way for maintainability and correctness.
If we are -really- concerned about performance, we can inline the
'stubby' functions in the header.
Alan
On Thu, Oct 10, 2002 at 07:31:04PM +0200, Jack Burton wrote:
>
> Hi all.
> I hope you all won't be upset by another question :)
> I'm approaching the completion of BString (some methods are well tested,
> other aren't, and a pair aren't implemented, but it will be in short
time),=
>
> and I was wondering.... Often I have some function which are similar,
for
> example:
>
> 1. Prepend(const char *string)
>
> and
>
> 2. Prepend(const BString &string).
>
> These functions call a private utility function (_DoPrepend),
> but I am thinking if it would be better for the (2) to just call the
first
> (i.e.
>
> Prepend(const BString &string)
> {
> =09Prepend(string.String());
> }
>
> Yes, this mean a little performance loss, but it would have the
undubious
> vantage that there would be less code =3D=3D less bugs.
> Anyway, this is just an example, and I would be glad if someone took a
> moment and threw a look to our BString implementation, to understand
what I=
>
> am saying.
>
> Thanks.
// eompost 3DA6097C:5A67.1:vagresnprxvg
- Follow-Ups:
- [interfacekit] Re: [Fwd: Message submitted to 'interfacekit']
- From: Alan Ellis
Other related posts:
- » [interfacekit] [Fwd: Message submitted to 'interfacekit']
- » [interfacekit] [Fwd: Message submitted to 'interfacekit']
- » [interfacekit] Re: [Fwd: Message submitted to 'interfacekit']
- » [interfacekit] Re: [Fwd: Message submitted to 'interfacekit']
- » [interfacekit] Re: [Fwd: Message submitted to 'interfacekit']
- » [interfacekit] Re: [Fwd: Message submitted to 'interfacekit']
- » [interfacekit] Re: [Fwd: Message submitted to 'interfacekit']
- » [interfacekit] Re: [Fwd: Message submitted to 'interfacekit']
- » [interfacekit] Re: [Fwd: Message submitted to 'interfacekit']
- [interfacekit] Re: [Fwd: Message submitted to 'interfacekit']
- From: Alan Ellis