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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8b8748382fcfacc1 X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: friend classes in ada95 Date: 2000/04/18 Message-ID: <8dh37m$qef$2@wanadoo.fr>#1/1 X-Deja-AN: 612583742 References: <38F6B617.34E216A7@emw.ericsson.se> <38F887AE.8CDA24E0@acm.org> <8dc8oi$kda$1@nnrp1.deja.com> <38FBBC72.7FDE6583@research.canon.com.au> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 956043318 27087 193.250.43.160 (18 Apr 2000 07:35:18 GMT) Organization: Adalog X-MSMail-Priority: Normal NNTP-Posting-Date: 18 Apr 2000 07:35:18 GMT Newsgroups: comp.lang.ada Date: 2000-04-18T07:35:18+00:00 List-Id: Can't resist to provide my 0.02 on the tagged/class issue, or how I present it in my courses. A tagged type is not a class. A tagged type is a programming construct that can be used to build classes. This is what the building block approach is about. A class in the usual OOP sense is a *design pattern*, where you put a tagged type and its associated primitive operations (the methods) in a package specification. Ada allows you to build other design patterns, that have no equivalent in other languages, like putting several tagged types in a single package (a bit like friends, but not exactly similar). -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog