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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID,
PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 103376,8b8748382fcfacc1
X-Google-Attributes: gid103376,public
From: "Pascal Obry"
Subject: Re: friend classes in ada95
Date: 2000/04/18
Message-ID: <8dh8aj$bmo$1@clnews.edf.fr>#1/1
X-Deja-AN: 612604396
References: <38F6B617.34E216A7@emw.ericsson.se> <38F887AE.8CDA24E0@acm.org>
<8dc8oi$kda$1@nnrp1.deja.com>
<38FBBC72.7FDE6583@research.canon.com.au> <8dh37m$qef$2@wanadoo.fr>
X-Priority: 3
X-Mimeole: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: newsadm@news.edf.fr
X-Trace: clnews.edf.fr 956048531 11992 130.98.42.146 (18 Apr 2000 09:02:11
GMT)
Organization: EDF
X-MSMail-Priority: Normal
NNTP-Posting-Date: 18 Apr 2000 09:02:11 GMT
Newsgroups: comp.lang.ada
Date: 2000-04-18T09:02:11+00:00
List-Id:
Jean-Pierre Rosen a �crit dans le message :
8dh37m$qef$2@wanadoo.fr...
> 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).
>
I completly agree with this view. The whole point is "building block" and
this
is how Ada has been design. Then designer can use the flexibility of Ada
to build whatever "design pattern" they need, one of them is the C++ or
Java "class".
This "building block" orientation of Ada has been very well presented by T.
Taft
at a conference in Paris some years ago.
Pascal.
--
--|------------------------------------------------------------
--| Pascal Obry Team-Ada Member |
--| |
--| EDF-DER-IPN-SID- T T I |
--| Intranet: http://cln46gb |
--| Bureau N-023 e-mail: p.obry@der.edf.fr |
--| 1 Av G�n�ral de Gaulle voice : +33-1-47.65.50.91 |
--| 92141 Clamart CEDEX fax : +33-1-47.65.50.07 |
--| FRANCE |
--|------------------------------------------------------------
--|
--| http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"