float init 0 request

Walter Bright newshound2 at digitalmars.com
Fri Aug 14 21:22:22 UTC 2026


On 8/14/2026 10:28 AM, Richard (Rikki) Andrew Cattermole wrote:
> Alternatively make the parameter out:
> 
> ```d
> void initialize(out float v);
> 
> float f;
> 
> initialize(f);
> ```

`out` will default initialize `v` to NaN upon entry to the function!



More information about the Digitalmars-d mailing list