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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c63aa81a67eceb8f X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Ragged Array Proposal Date: 1999/09/28 Message-ID: <7sqo26$b5t$1@nnrp1.deja.com>#1/1 X-Deja-AN: 530161696 References: <37e7c08e@eeyore.callnetuk.com> <37EA9A72.594ED8F5@mitre.org> <37ebb120@eeyore.callnetuk.com> <7so0i4$d8j$1@nnrp1.deja.com> <01bf0919$67bbb350$022a6282@dieppe> X-Http-Proxy: 1.0 x41.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Sep 28 15:49:30 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-09-28T00:00:00+00:00 List-Id: In article <01bf0919$67bbb350$022a6282@dieppe>, "Pascal Obry" wrote: > > > > > Actually, that hides a bit of information. If I were writing it, it > > would look more like: > > > > Fruits : constant array (Positive range <>) of > > Ada.Strings.Unbounded.Unbounded_String := > > (Ada.Strings.Unbounded.To_Unbounded_String("Apple"), > > Ada.Strings.Unbounded.To_Unbounded_String("Orange"), > > Ada.Strings.Unbounded.To_Unbounded_String("Pear"), > > ...); > > > > Well Ada.Strings.Unbounded is a package that has been designed to > be used with a use clause. Look above at all the redundant infos. There is no "redundant info" above, unless you count the redundant info that the designers of the unbounded string package purposely put in there. :-) But that's not the issue here. We are talking about presenting an example comparing the syntactic weight of the current approach to that of a proposed approach. Unless you include the "use Ada.Strings.Unbounded;" statement in your example, then I argue that you *must* write the example this way. As others have pointed out, you can further shorten (and thus hide away) some of the syntax using renames clauses and unary operators. The fact that you can use tricks to hide some of the inherent ugliness in the above approach is beside the point. The fact that folks would object to someone *not* using such tricks practicly makes Nick's point for him. -- T.E.D. Sent via Deja.com http://www.deja.com/ Before you buy.