Is `void` the correct way to say "do not initialize this variable"?
    kdevel 
    kdevel at vogtner.de
       
    Thu Oct  6 12:14:46 UTC 2022
    
    
  
On Monday, 3 October 2022 at 15:56:02 UTC, Paul Backus wrote:
>> Shouldn't this read
>>
>>    Unspecified Value: If a void initialized variable's value 
>> is used
>>    before it is set, its value is unspecified.
>
> Yes, it should. Many of the contributors to the D spec are not 
> very well versed in the precise details of these terms, so 
> mistakes like this occasionally slip through.
Issue 23390 - value of void initialized variable is unspecified 
(and not subject to UB)
    
    
More information about the Digitalmars-d-learn
mailing list