Object.factory() and exe file size bloat

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 23 23:37:31 PDT 2015


On 2015-08-21 22:26, Walter Bright wrote:

> The principle often used by languages (C, C++, Rust) is you only pay for
> what you use. With Object.factory, every program pays for it with every
> class, despite very few actual uses of it.

A always thought of D as a bit more convenient language. Variables are 
automatically initialized, virtual by default, minimal reflation 
functionality, i.e. Object.factory.

Although, all of these can be avoided except for Object.factory.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list