=void in struct definition

Shachar Shemesh shachar at weka.io
Wed Apr 11 08:31:16 UTC 2018


On 11/04/18 10:58, Jonathan M Davis wrote:
> All objects are initialized with their init values prior to the constructor
> being called. So, whether an object is simply default-initialized or whether
> the constructor is called, you're going to get the same behavior except for
> the fact that the constructor would normally do further initialization
> beyond the init value. As such, if there's a problem with the
> default-initialized value, you're almost certainly going to get the same
> problem when you call a constructor.
> 
> - Jonathan M Davis
> 

That's horrible!

That means that constructor initialized objects, regardless of size, get 
initialized twice.

Shachar


More information about the Digitalmars-d mailing list