Big struct/class and T.init

Guillaume Piolat first.last at spam.org
Sun Feb 19 18:11:40 UTC 2023


If my understanding is correct, the mere fact of having a:


     struct S
     {
         char[16384] array;
     }

And then using it anywhere, will necessarily lead to a S.init 
being created and linked, leading to a binary size inflation of 
16kb.
This is not a super high concern, but can inform design decisions.

Is this correct?


More information about the Digitalmars-d-learn mailing list