From: stluka@software.org (Fred Stluka)
Subject: Re: Use of "is separate" and compilatio
Date: 7 Dec 89 23:32:21 GMT [thread overview]
Message-ID: <1638@sunny.software.org> (raw)
In-Reply-To: 60@array.UUCP
In article <60@array.UUCP> len@array.UUCP (Leonard Vanek) writes:
> If "proper name scoping" is used to avoid the potential pitfalls of
> subunits, how does the subunit differ substantially from a package?
> I think that the alternative to subunits in this case is not to place
> them in-line in the parent procedure or package, but to make them
> packages in their own right. Why do we need to use the "is separate"
> mechanism?
Subunits are similar to library units in being allowed to have "with"
clauses.
However, they are different in not being able to be "with"ed by other
units. They are visible only to their parents.
Subunits are the only choice when you want to only a small portion of
a large package to have visibility into other library units without
allowing other units to have visibility into the small portion.
--Fred
--
Fred Stluka CSNET: stluka@software.org
Software Productivity Consortium ARPANET: stluka%software.org@RELAY.CS.NET
2214 Rock Hill Rd, Herndon VA 22070 UUNET: ...!uunet!sunny!stluka
next prev parent reply other threads:[~1989-12-07 23:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1989-11-27 20:29 Use of "is separate" and compilatio stt
1989-11-28 17:40 ` Ed Matthews
1989-11-29 20:16 ` arny.b.engelson
1989-12-01 18:29 ` Leonard Vanek
1989-12-04 16:52 ` Michael Schwartz
1989-12-06 12:54 ` Mike Walsh
1989-12-07 23:32 ` Fred Stluka [this message]
-- strict thread matches above, loose matches on Subject: below --
1989-11-29 17:43 stt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox