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,4f316de357ae35e9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-05 09:02:35 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.socal.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Message-ID: <3D4EA1AC.80D17170@san.rr.com> From: Darren New X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: FAQ and string functions References: <20020730093206.A8550@videoproject.kiev.ua> <4519e058.0207300548.15eeb65c@posting.google.com> <20020731104643.C1083@videoproject.kiev.ua> <4519e058.0208010629.5e6182ca@posting.google.com> <20020801194720.Q1080@videoproject.kiev.ua> <4519e058.0208020605.5ab7e092@posting.google.com> <3D4AAF63.72782659@san.rr.com> <3D4B2382.7030209@telepath.com> <3D4B2ACD.FDA29B9A@san.rr.com> <3D4B401E.3060802@telepath.com> <3D4B4477.500088B@san.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 05 Aug 2002 16:02:29 GMT NNTP-Posting-Host: 66.74.216.166 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1028563349 66.74.216.166 (Mon, 05 Aug 2002 09:02:29 PDT) NNTP-Posting-Date: Mon, 05 Aug 2002 09:02:29 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:27709 Date: 2002-08-05T16:02:29+00:00 List-Id: Lutz Donnerhacke wrote: > > * Darren New wrote: > >Tell me how you declare a variable for an array whose bounds you don't know > >until after you're past the declaration? > type Unbounded_Array is new Ada.Finalization.Controlled with record > array_p : array_access := null; And at which point did you declare a and b to be an array? > a, b : Int_Array; This is declaring a and b to be an access type. Yes, you can program around the lack of unbounded arrays. The point remains that a lot of people are used to languages where you don't have to do that. When they ask why Ada doesn't come with that functionality, the right answer isn't "you don't really need that." The right answer, at worst, is "take a look at adahome.com/library/hither/yon for a package that implements unbounded arrays; that's the right idiom for extending Ada." Saying the new idiom is the "right" one is only effective when the new idiom really is trivial, rather than a change in how you think about solving the problem. And yes, I've already implemented my own unbounded arrays, thanks. :-) They're not compatible with your unbounded arrays. *That* is the problem. I can't easily take your library and make it work with my library, because the fundamental underlying types, even if implemented identically, are not compatible. -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. ** http://images.fbrtech.com/dnew/ ** They looked up at me like I was a T-bone steak walking into an all-you-can-eat seafood buffet.