Okay, what happened to my literal strings?
Derek Parnell
derek at psych.ward
Thu Sep 6 15:31:21 PDT 2007
On Thu, 06 Sep 2007 14:42:53 -0700, Walter Bright wrote:
> Kirk McDonald wrote:
>> Using 'string' is highly recommended.
>
> I agree, for multiple reasons:
>
> 1) it is backward compatible with D 1.0
> 2) it is forward compatible in case we need to redesign const
> 3) it reads nicer
>
> Use char[] only if you specifically require a mutable string.
FWIW, I'm using
alias char[] text;
a lot now.
--
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
More information about the Digitalmars-d
mailing list