www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - V2 Initializing char[] variables

So I can't use

char[] da = "abc"

any more because "abc" is immutable.  Presumably I do

char[] da = "abc".dup;

Since the compiler knows I can't do this would it do any harm to attribute a
different meaning to da = "abc"; and have the dup implied?  One less thing to
fix in existing code.

On todays popular subject, I'd just like to note that it took me maybe half an
hour to convert around 3000 lines of my odbcd code to V2, mainly by just
substituting 'string' for 'char[]'.  Quite painless really.
Jul 06 2007