Initializing a class member that is an object

Laurent Tréguier laurent.treguier.sink at gmail.com
Fri Mar 30 11:09:56 UTC 2018


On Friday, 30 March 2018 at 11:04:59 UTC, ketmar wrote:
> p.s.: still, it may be nice to warn user about that. 'cause 
> such runtime initializations are really belong to static ctor. 
> dunno, i'm ok both with warning and without it.

I simply think a word about it in the docs would be nice, since 
this is tricky if you come from another language that doesn't do 
this. Otherwise I'm fine with it (and it's not exactly hard to 
fix either)


More information about the Digitalmars-d-learn mailing list