Joseph Musser
Joseph Musser
> BTW, this is unrelated to the above issue, but your CI output includes the warning: > > > `The client secret options are obsolete and should no longer be...
Re: https://github.com/RikkiGibson/csharplang/blob/module-initializers/proposals/module-initializers.md#motivation > - Enable source generators to run some global initialization logic without the user needing to explicitly call anything > - (in which scenarios is a static constructor...
@TFTomSun Thanks, that was helpful. You are correct. I was able to build examples on [.NET Core](https://gist.github.com/jnm2/20996a30ea5db3a0980ccc66c076f890) and [.NET Framework](https://gist.github.com/jnm2/7a4289989c2a5998927e8c3bab98bb83) which show that Assembly.GetTypes() does not trigger the module initializer....
@AlekseyTs brought up a good question. The concept of a module initializer does not appear in ECMA-335. Does anyone know what happened to it? https://blogs.msdn.microsoft.com/junfeng/2005/11/19/module-initializer-a-k-a-module-constructor/ lists what appears to be...
This probably explains why it's not in ECMA-335. > Host: MartynL (Microsoft) > **Q:** Is the "module constructor" a CLR feature or a CLI feature? > **A:** Right now the...
This is the only mention of module initializers that I can find in CLR docs: - > Additionally, the Visual C++ compiler no longer generates a `DllMain` implementation for library...
Given that a lot of us have been dependent on module initializers working for a number of years, and the pain that @gafter wants to address is real, is the...
@jkotas Awesome! Should I start with opening an issue so that someone else can start the document, or should I start with a PR to add e.g. `runtime/docs/design/features/ECMA-335-Augments.md` with a...
That is quite a wart. Discussion: https://github.com/dotnet/csharplang/discussions/2547
This doesn't seem related, but it's such a coincidence that I'll point to it anyway: