float.sizeof should be 4
Paul Backus
snarwin at gmail.com
Tue Sep 24 14:11:47 UTC 2024
On Tuesday, 24 September 2024 at 14:06:50 UTC, Salih Dincer wrote:
> On Tuesday, 24 September 2024 at 13:36:06 UTC, deadalnix wrote:
>>
>> sizeof is a property here, not a value, and that property has
>> for value 4, and type size_t.
>
> When we want to look at the size of an enum, why is it 128
> bytes if its original type is string?
I assume you mean "bits," not "bytes." A string in D consists of
a 64-bit pointer and a 64-bit length, for a total of 128 bits (or
16 bytes).
More information about the Digitalmars-d
mailing list