float init 0 request

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Mon Aug 17 03:52:27 UTC 2026


On 17/08/2026 3:48 PM, Walter Bright wrote:
> On 8/16/2026 1:30 AM, libxmoc wrote:
>> Would scoping 0 initialization to extern(C) struct (or under -betterC) 
>> make sense as a compromise?
> 
> It would break the language into two incompatible dialects.
> 
> extern(C) is not for semantic differences, it is just to match C calling 
> conventions.

Except that isn't quite true ;)

```d
struct S {}
static assert(S.sizeof <= 1);
```



More information about the Digitalmars-d mailing list