On 30 Jul 1999 23:43:09 +0200, Lars Gullik Bj°nnes wrote:

>"Arnd Hanses" <[EMAIL PROTECTED]> writes:
>
>| The reason for prefering to use a const function and an additional
>| variable is:
>
>As I said below this is a matter of style.
>
>a) void foo(string &);
>b) string foo(string const &);
>
>I like b best since it does not change/modify its parameters.
>
>| A real string (like LString) and a helping 'pointer' to iterate through
>| it is (check respective checkbox(es)):
>| 
>| O    a: simply not feasible, because it's insane low level C
>| hackish aberrance from the path of computing virtue 
>| 
>| O    b: much faster and better code because it shows more
>| understanding of what computers are and how computing works
>
>How do you know that the string internals will be represented as a
>char*? You _actually_ don't have that information. You have only the
>public interface of the string to work with.
>
>Think "we are moving to use standard string", and see why we cannot
>modify the string class.
>
>       Lgb
>
I see...

Reply via email to