Compile-time global mutables
Adam D Ruppe
destructionator at gmail.com
Thu Jun 30 14:45:49 UTC 2022
On Thursday, 30 June 2022 at 14:38:30 UTC, HuskyNator wrote:
> Did I miss some piece of documentation?
Key concept is a template is just another aggregate...
> I'm also curious what this would create in the application. Are
> you left with potentially dozens if not hundreds of useless
> functions in the code? The `static this` methods are all
> separate instances correct?
No, it combines them all into a single one per-module in the
compiler. Then the modules are combined at run time by walking an
array of them and running each function in turn.
More information about the Digitalmars-d
mailing list