>>> Would be nice if somehow smartlinking could be 'smartened' to optimize
>>> this out. (Conditional initialization for group of
>>> variables/functions?)
>>
>> Yes :) I thought at least a hundred times about it during the last ten
>> years, but I never came up with an idea that is both clean and doable in
>> implementation.
>
> I thought there was already one ? 'unit export' or something alike,
> where you can re-export all types defined in another unit in this unit.
> If nothing is used from that unit, it is completely smartlinked out,
> including initialization/finalization.

That is again not possible. Even if nothing is exported the initialization
can do some specific os settings or update some system unit settings.
Examples are the heaptrc and lineinfo units.



_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to