[Issue 9691] New: Static void arrays are not documented
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 11 12:08:31 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9691
Summary: Static void arrays are not documented
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: websites
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-03-11 12:08:29 PDT ---
There is no documentation stating how static void arrays are implemented.
In particular, what is their actual element size? It seems they're byte-sized:
void main()
{
byte[2] x;
int[2] y;
void[2] a = x; // ok
void[2] b = y; // runtime error: 8 bytes does not fit into 2 bytes
}
But this needs to be documented. The last statement should probably also be a
compile-time error.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list