Would Lcl be better if it was in D?

via Digitalmars-d digitalmars-d at puremagic.com
Sun Mar 1 12:55:36 PST 2015

On Sunday, 1 March 2015 at 20:41:30 UTC, Taylor Hillegeist wrote:
> So I was using the Lazarus IDE the other day, and i thought to 
> myself, what if i create an application with only a button in 
> it. well it was easy enough to do. but behold I saw the 
> executable and it was 14 MB, and I said 'well damn.' It seems 
> to me that pascal does not do lazy inclusion when it comes to 
> components of Lcl apart from pre-compiler directives.
> I noticed some includes in d are inside of functions.
> void foo() {
>  import thingIneed:subfoo;
>  subfoo();
> }
> would this allow people to use a large library like LCL but 
> with much smaller executables?

Sounds like you did a debug build.
Read this: http://wiki.freepascal.org/Size_Matters

More information about the Digitalmars-d mailing list