float.sizeof should be 4

deadalnix deadalnix at gmail.com
Tue Sep 24 13:36:06 UTC 2024


On Tuesday, 24 September 2024 at 10:49:45 UTC, Dom DiSc wrote:
> On Tuesday, 24 September 2024 at 03:23:31 UTC, Jonathan M Davis 
> wrote:
>> So, the issue really isn't the value itself. That will convert 
>> to other sizes just fine, particularly since it's known at 
>> compile time. Rather, what matters is what you get when you do 
>> math on it
>
> Doing math most of the time involves at least two values, in 
> this case sizeof (of type size_t) and 4 (a nibble).

You might want to make sure you understand the problem before 
commenting, that would save everybody some time.

sizeof is a property here, not a value, and that property has for 
value 4, and type size_t.


More information about the Digitalmars-d mailing list