digitalmars.D - Error on website.
- Saaa (4/4) Feb 06 2008 char[] str;
- Jesse Phillips (2/7) Feb 06 2008 True, but it fails because str points to nothing.
- Saaa (1/7) Feb 07 2008 Or, in other words: isn't long enough :)
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.
Feb 06 2008
On Wed, 06 Feb 2008 21:23:06 +0100, Saaa wrote: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.
Feb 06 2008
Or, in other words: isn't long enough :)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.
Feb 07 2008