[lazarus] Saving and loading units and project doubts
Curtis White
cwhite at aracnet.com
Wed Feb 28 10:49:01 EST 2001
Peter Vreman wrote:
>
> > > b) What is 'aliases' property of Tproject for?
> >
> > This was designed to hold the unit aliases like those in Delphi. In
> > other words, if you have a unit called "linux" and it is later renamed
> > to "linapi", then you could put in an alias of "linux=linapi" so the
> ID> E
> > can substitute linapi whenever it sees linux in the uses clause. The
> > aliases would likely be separated by semi-colons (;), or something
> > similar, as they are in Delphi.
>
> This is not supported by the compiler. And it won't be supported in the future as Michael
> and Florian are against it, because it's only confusing.
>
> It was added in the past in Delphi to allow backwards compatibility of the windows unit
> with the wintypes and winproc units.
>
But Lazarus could support it if we want to. We could just replace one
with the other in the source code before submitting it to the compiler.
I guess that is something we need to decide (if we want to support
aliases or not within Lazarus). If not, then we can remove that property
from the TProject class.
Curtis
More information about the Lazarus
mailing list