From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,be23df8e7e275d73 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-13 15:55:07 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsxfer.eecs.umich.edu!news.bu.edu!acs5.bu.edu!ddutheza From: Didier Utheza Newsgroups: comp.lang.ada Subject: About private types and reusability? Date: Fri, 13 Jul 2001 18:55:03 -0400 Organization: Boston University Message-ID: References: <0zS27.187213$DG1.31590366@news1.rdc1.mi.home.com> <3B4F4BAC.D53B9555@PublicPropertySoftware.com> <9inlsv$m7l$1@nh.pace.co.uk> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news3.bu.edu 995064907 28292 128.197.153.50 (13 Jul 2001 22:55:07 GMT) X-Complaints-To: news@bu.edu In-Reply-To: Xref: archiver1.google.com comp.lang.ada:9930 Date: 2001-07-13T18:55:03-04:00 List-Id: There was an interesting comparison on the net of c++, Ada95 and Modula3. The only critic of Ada was about the inclusion of the description of the private type in the specification rather than the body of the module. Modula3 keeps everything private in the body. I know that it was question to create a third type of file that would have described the private type. The idea was abandoned because having to deal with three files for one module will not have simplify things. So my question, if anybody has an answer, is why this choice. The inclusion of the private type defenition in the body should keep things modular. The specifications describing to the user the method to access the object in a transparent way. By including the private type def. in the specifications, any following change means that you not only have to recompile the module but also the whole program since the specifications changed. Where is the advantage? Thanks for any answer. Didier Utheza.