"Arnd Hanses" <[EMAIL PROTECTED]> writes:

| 1) Using a const function parameter and an additional variable of class
| LString. (see above)

I this best.

| 2) Using only one non-const variable. (You'll have to instantiate one
| in all cases.)

A matter of style.

| 3) Using a pointer to the processed characters within the string
| handling loop, instead of accessing it through (slow?) array subscript
| iteration. (I saw 'p->s[i]' inside LString, but using a pointer to
| LString and doubly dereferencing it like in plain C didn't work and I
| don't have a clue if is at all possible.)

No, with a real string class we would have used iterrators. and
perhaps a helping functor.

| Many questions, but I promise to add the answers to the examples in
| LString.h, so that those questions will never be asked again and in the
| future you'll have the pleasure to just commit the cleanest and most
| professional patches on earth :)

:-) dream on!

        Lgb

Reply via email to