V2 string
Oskar Linde
oskar.lindeREM at OVEgmail.com
Thu Jul 5 06:41:25 PDT 2007
Derek Parnell wrote:
> I'll make my code example more free from assumed functionality.
>
>
> char[] qwerty;
>
> qwerty = KJHGF(poiuy).dup;
> version(xyzzy)
> {
> MNBVC(qwerty);
> }
>
> As you can see, my point is made without regard to converting stuff to
> lower case.
What you are doing there is mixing two styles of functions. Functional
(KJHGF) and in-place modifying functions (MNBVC). Walter's modification
was making both use a common style (functional).
Mixing those two function styles will naturally require different types
of constness.
--
Oskar
More information about the Digitalmars-d
mailing list