V2 Initializing char[] variables

Steve Teale steve.teale at britseyeview.com
Fri Jul 6 01:57:54 PDT 2007


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.



More information about the Digitalmars-d mailing list