[Issue 9691] Static void arrays are not documented
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 15 10:41:30 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9691
hsteoh at quickfur.ath.cx changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hsteoh at quickfur.ath.cx
--- Comment #1 from hsteoh at quickfur.ath.cx 2013-03-15 10:41:30 PDT ---
I don't like the concept of void[]. It makes me think the element size is 0,
and therefore the array is always 0-sized. But it seems the element size of
void[] is 1. So then why not ubyte[]? That's basically what it is: you're
treating the data as an array of bytes instead of an array of whatever other
type it may have been.
(Yes an unsafe cast is needed but you're already doing that implicitly by
passing T[] to void[] in the first place.)
--
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