[Issue 996] New: Error in doc on implicit conversion between pointer and array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 22 06:56:00 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=996
Summary: Error in doc on implicit conversion between pointer and
array
Product: D
Version: 1.007
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: henrik at harmsen.se
In the documentation on arrays, under "usage" is mentioned this sequence:
int* p;
int[3] s;
p = s; // p points to the first element of the array s.
However, this causes the following message from the compiler:
"cannot implicitly convert expression (s) of type int[3] to int*."
It seems the documentation needs to be updated. I only stumbled on one of the
cases (the above) but there might be more cases that need revisit.
--
More information about the Digitalmars-d-bugs
mailing list