[fpc-devel] CmdLine

Daniël Mantione daniel.mantione at freepascal.org
Wed Oct 18 22:38:20 CEST 2006



Op Wed, 18 Oct 2006, schreef Micha Nelissen:

> Daniël Mantione wrote:
> > 
> > Op Wed, 18 Oct 2006, schreef Micha Nelissen:
> > 
> >> 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.

I have considered the use of units. But if you need a unit for 
something like cmdline, and start applying this technique to other things 
in the system unit, it becomes one mess of helper units.

I wasn't aware of this specific feature, but cleanness I don't think we 
should go this route.

Daniël


More information about the fpc-devel mailing list