Would Lcl be better if it was in D?

Taylor Hillegeist via Digitalmars-d digitalmars-d at puremagic.com
Sun Mar 1 12:41:28 PST 2015


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?


More information about the Digitalmars-d mailing list