Question regarding D v.0110
Remi
remigillig at gmail.com
Mon Jul 13 16:24:30 UTC 2020
On Monday, 13 July 2020 at 13:33:45 UTC, Remi wrote:
> On Monday, 13 July 2020 at 12:25:33 UTC, Steven Schveighoffer
> wrote:
>>
>> Though it depends on usage -- perhaps a Rand is useless
>> without a seed set?
>>
>> As I suspected, the static ctor could easily be marked
>> standalone (as in, it can't be part of a cycle, because it
>> doesn't depend on any other module to run). This is quite
>> frequently one of the biggest problems with D's static ctors.
>>
>> -Steve
>
> Interesting, is that a language feature? I found the "shared
> static constructors" in the documentation which I think could
> be used here and would achieve the same thing but might also be
> covered by cyclicity checks, do you know?
I tried and got the same runtime error regarding cycling
dependencies between static constructors/destructors.
More information about the Digitalmars-d
mailing list