Error on website.

Saaa empty at needmail.com
Thu Feb 7 00:50:52 PST 2008



>> char[] str;
>> char[] str1 = "abc";
>> str[0] = 'b';        // error, "abc" is read only, may crash
>>
>> Editing str has nothing to do with str1, as far as I know.
>
> True, but it fails because str points to nothing.
Or, in other words: isn't long enough :) 





More information about the Digitalmars-d mailing list