Initializing a class member that is an object
ketmar
ketmar at ketmar.no-ip.org
Fri Mar 30 11:14:32 UTC 2018
Laurent Tréguier wrote:
> 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)
please, make an ER in bugzilla then. 'cause it will be lost here, and with
ER we have a chance to eventually do that.
More information about the Digitalmars-d-learn
mailing list