At 10:42 PM +0100 28/2/03, Frank Heckenbach wrote:
Not quite. given:
Unit foo; interface uses bar; implementation uses nobar; begin end.
In any user of foo, anything in the interface section of bar should be visable; unit nobar remains hidden.
Nope. Using `bar' in the interface only means its declarations are available when processing the interface declarations of `foo', not that they're re-exported.
In the Mac world, this is generally called "Uses Propagation" and was always on in THINK Pascal and is a compiler switch in CodeWarrior.
The best use of it is for writing a unit MacOS.p that includes all the MacOS API interface files for you in one go, rather than have to specify them each explicitly as you use them. Is there any way to get an equivalent to this in GPC?
For your own units in a normal program, it's probably not particularly useful.
Enjoy, Peter.