comp.lang.ada
 help / color / mirror / Atom feed
* Re: Re: Style: always declare subrountines?
@ 2002-11-28 11:50 Grein, Christoph
  0 siblings, 0 replies; 2+ messages in thread
From: Grein, Christoph @ 2002-11-28 11:50 UTC (permalink / raw)


private with P.Implementation;     would do it. I do not remember the AI.
>   package P.Public is
>     type T is private;
>     ...
>   private
>     type T is
>       record
>         X : P.Implementation.Stuff;
>       end record;
>   end P.Public;
> 
> Unfortunately P.Implementation can't be a private package here. (I
> seem to remember someone saying that there was an AI that addressed
> this problem; can anyone point me at it if this is true?)



^ permalink raw reply	[flat|nested] 2+ messages in thread
* Style: always declare subrountines?
@ 2002-11-09  6:39 Victor Porton
  2002-11-18  1:52 ` ;Re: " Richard Riehle
  0 siblings, 1 reply; 2+ messages in thread
From: Victor Porton @ 2002-11-09  6:39 UTC (permalink / raw)


How do you consider this:

If one would always declare every subrountine of a package body in the 
specification (in the public or in the private part) this excludes the
possibility that one may mistakedly create an internal subrountine with
the same specification as a not yet implemented public procedure and 
forget to implement this public procedure and so get wrong program
behavior.

Stylistic checkers for always declaring in package specification?



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-28 11:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-28 11:50 Re: Style: always declare subrountines? Grein, Christoph
  -- strict thread matches above, loose matches on Subject: below --
2002-11-09  6:39 Victor Porton
2002-11-18  1:52 ` ;Re: " Richard Riehle
2002-11-28 10:32   ` John English

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox