Object.factory() and exe file size bloat

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 21 15:06:18 PDT 2015

On 8/21/2015 6:27 AM, Dicebot wrote:
> And when you combine both you gets function that is always folded at compile
> time and does not bloat the generated object file (like it happens right now
> with CTFE-only functions - they are still emitted to the binary). Win.

They are emitted as COMDATs, and as such are not emitted to the binary (at least 
on Windows, where COMDATs actually work).

More information about the Digitalmars-d mailing list