customized "new" and pointer alignment
Jarrett Billingsley
kb3ctd2 at yahoo.com
Mon Jan 29 20:44:21 PST 2007
"%u" <new at new.com> wrote in message news:epm1ep$1ld5$1 at digitaldaemon.com...
> Also buffer is declared as:
>
> void[] buffer;
>
> Is the size of void is the same as char?
The size of a void is (AFAIK) defined to be the smallest addressable (or
maybe manipulatable) data unit on the machine. So on most computers, it'll
be an 8-bit byte.
The size of a char variable is always 8 bits, because it's a UTF-8
something-or-other. It's not a codepoint, it's a ...? But it's always 8
bits.
So the two sizes are the same mostly by coincidence.
More information about the Digitalmars-d
mailing list