Would Lcl be better if it was in D?

Mike James via Digitalmars-d digitalmars-d at puremagic.com
Sun Mar 1 13:39:06 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?

Turn off the debug build - it's then only a few meg...

-<Mike>-


More information about the Digitalmars-d mailing list