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,7f4d16c4ee371eb5 X-Google-Attributes: gid103376,public From: "Pascal Obry" Subject: Re: Why is it Called a Package? Date: 2000/04/07 Message-ID: <8ck2mt$jrn$1@clnews.edf.fr>#1/1 X-Deja-AN: 607901771 References: <38DF7F38.8D656ABD@lmtas.lmco.com> <38DFB0BC.9FF72EFC@callnetuk.com> <87u2hq857e.fsf@deneb.cygnus.argh.org> <38E2A4A4.E59E997C@research.canon.com.au> 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 955092509 20343 130.98.42.146 (7 Apr 2000 07:28:29 GMT) Organization: EDF X-MSMail-Priority: Normal NNTP-Posting-Date: 7 Apr 2000 07:28:29 GMT Newsgroups: comp.lang.ada Date: 2000-04-07T07:28:29+00:00 List-Id: Brian Rogoff a �crit dans le message : Pine.BSF.4.21.0004061305320.6588-100000@shell5.ba.best.com... > I think if the syntax were to be redone I'd like the issue of "()" versus > "[]" for array indexing to be reexamined. Then we could also think about > some syntactic sugar for overloading "[]" as in C++. The restrictions on > the character set that were part of the original Ada requirements don't > make a lot of sense to me now, though the restriction to ASCII is OK. I don't think we want that. A very nice consequence here is that you can easily change an abstraction from: package P is Some_Value : array (1 .. 10) of Integer; -- first quick implementation using basic array end P; to package P is function Some_Value (N : in Positive) return Integer; -- real implementation using a complex structure end P; (or the other way around) without modifying all client code. I really don't see what would be gained by using "[]"... a more C/C++ syntax :) 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"