home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!world!art
- From: art@world.std.com (Al Thompson)
- Subject: Re: TP units question
- In-Reply-To: steveg@iplmail.orl.mmc.com's message of 9 Sep 92 15:24:08 GMT
- Message-ID: <ART.92Sep10133100@world.std.com>
- Sender: art@world.std.com (Al Thompson)
- Organization: The World Public Access UNIX, Brookline, MA
- References: <1992Sep4.141203.28370@news.columbia.edu>
- <dmurdoch.123.715622406@mast.queensu.ca>
- <1992Sep9.152408.842@iplmail.orl.mmc.com>
- Date: Thu, 10 Sep 1992 18:31:00 GMT
- Lines: 22
-
-
- In article <1992Sep9.152408.842@iplmail.orl.mmc.com> steveg@iplmail.orl.mmc.com (Steve Gabrilowitz) writes:
-
-
- |> In article <1992Sep4.141203.28370@news.columbia.edu> stone@cunixb.cc.columbia.edu (Glenn Stone) writes:
- |> >If a procedure/function is only used within the implementation section
- |> >of a unit, it doesn't have to be declared in the interface section,
- |> >but is there any disadvantage to doing so? I'm using TP 5.5.
-
- Another disadvantage of doing this is that if you make any changes to the
- parameter list in the routine, you have to change it in two places (interface and
- implementation) instead of just one.
-
- No you don't. The only place the parameter list must appear is the
- interface section. The occurence of the parameter list in the
- implementation section is optional in TP and not permitted in Extended
- Standard Pascal. I usually include the parameter list inside a comment
- in the implementation section. This serves as a reminder as to what the
- parameters are without requiring my going back and forth between the
- interface and implementations, a real pain in a large program.These
- remarks of course only apply to exported procedures.
-
-