831 – Warning!! String literals are read-only one some platforms.

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 831 - Warning!! String literals are read-only one some platforms.
Summary: Warning!! String literals are read-only one some platforms.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P1 enhancement
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2007年01月11日 19:54 UTC by Bradley Smith
Modified: 2014年02月15日 13:13 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Bradley Smith 2007年01月11日 19:54:57 UTC
The Strings section of the arrays page (http://www.digitalmars.com/d/arrays.html) needs a big, bold WARNING that string literals may be read-only on some platforms (for example Linux). A simple example would also be helpful. Maybe something like the following.
char[] a = "abc";
a[1] = "-"; // Invalid. Will compile, but may crash.
Since this is a portability and a reliabilty issue, it should have high priority.
The compiler page (http://www.digitalmars.com/d/dcompiler.html) appears to be the only place this issue is noted.
Comment 1 Walter Bright 2007年02月12日 03:38:18 UTC
Fixed DMD 1.005


AltStyle によって変換されたページ (->オリジナル) /