Prof A Olowofoyeku (The African Chief) wrote:
On 1 Apr 2005 at 17:32, Frank Heckenbach wrote:
Prof A Olowofoyeku (The African Chief) wrote:
BTW: Delphi has a facility for aliasing units: "-A<unit>=<alias>". I think we discussed this quite a while ago. Does gpc now have this feature,
No, but two (partial) alternatives:
[...]
- Uses propagation (make a unit `Bar' which export everything it imports):
{$propagate-units}
unit Bar;
interface
uses Foo;
implementation
end.
Thanks. This could be a useful workaround. It would be nice to have something like "--unit-alias unitname=aliasname", but it probably isn't a trivial thing to implement ...
Probably not so trivial, since it would affect both GPC (proper), automake and GP. And you didn't really state why you want it. Do you plan to use it regularly for all kinds of units? Or only for a fixed set of units? In the latter case, both alternatives would seem to do as well (the first one with `uses ... in', the second one even without it).
Frank