float init 0 request

Steven Schveighoffer schveiguy at gmail.com
Wed Aug 19 20:58:56 UTC 2026


On Wednesday, 19 August 2026 at 07:42:00 UTC, Serg Gini wrote:
> C#:
> ```csharp
> class Foo
> {
>     float value;       // automatically 0f
>     float[] values = new float[100]; // all 0f
> }
> ```

D:
```d
void main() {
     float[int] aa;
     aa[0]++;
     writeln(a[0]); // ???
}
```

-Steve


More information about the Digitalmars-d mailing list