float init 0 request

Walter Bright newshound2 at digitalmars.com
Sun Aug 16 02:33:42 UTC 2026


On 8/15/2026 3:13 AM, pete wrote:
> (this is what C/C++ does for example and copying code examples from the web 
> will have some C code such as:
> 
> ```
> typedef struct VkClearDepthStencilValue {
>      float       depth;
>      uint32_t    stencil;
> } VkClearDepthStencilValue;
> 
> VkClearDepthStencilValue depthStencilClear = {
>      .stencil = 0
> };

If you leave it as a C file, and then import it using Import C, the default 
initializer for `.depth` with be 0.0. (!!)



More information about the Digitalmars-d mailing list