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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2ac407a2a34565a9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.135.231 with SMTP id pv7mr4326186pbb.8.1330695563048; Fri, 02 Mar 2012 05:39:23 -0800 (PST) Path: h9ni30698pbe.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!news.albasani.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.uni-weimar.de!not-for-mail From: stefan-lucks@see-the.signature Newsgroups: comp.lang.ada Subject: Re: Array Help? Date: Fri, 2 Mar 2012 14:45:39 +0100 Organization: Bauhaus-Universitaet Weimar Message-ID: References: <10615783-d4a9-4cbd-8971-53ba1100d6a0@b18g2000vbz.googlegroups.com> <17412419.40.1330534213855.JavaMail.geo-discussion-forums@vbva11> Reply-To: stefan-lucks@see-the.signature NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 X-Trace: tigger.scc.uni-weimar.de 1330695563 5164 141.54.178.228 (2 Mar 2012 13:39:23 GMT) X-Complaints-To: news@tigger.scc.uni-weimar.de NNTP-Posting-Date: Fri, 2 Mar 2012 13:39:23 +0000 (UTC) X-X-Sender: lucks@medsec1.medien.uni-weimar.de In-Reply-To: Content-Type: TEXT/PLAIN; charset=US-ASCII Date: 2012-03-02T14:45:39+01:00 List-Id: On Wed, 29 Feb 2012, Robert A Duff wrote: > Sure, slices are useful, and I use them. But I wouldn't mind too > much if they didn't exist. It's trivial to write a Slice function > that does what "A(F..L)" does. A predefined function Slice for all (at least for all one-dimensional) array types would be OK. Having to instantiate a generic or to write a slice function on ones own each time one needs a slice would clutter the code ... > You didn't address my point about l-values. There is a simple reason why I didn't address that part of your posting: I don't have a strong point in favor of slices as l-values. > None of your slices above are l-values. L-value slices cause a lot of > implementation trouble, and are nearly useless -- the language would be > better off without them. I haven't been aware that l-value slices are so difficult to implement, and I wouldn't mind to put them away. > > procedure Sort(Items: in out array(generic Positive range <>) of T) is > > Interesting idea. Thank you! Stefan -- ---- Stefan.Lucks (at) uni-weimar.de, University of Weimar, Germany ---- ------ I love the taste of Cryptanalysis in the morning! ------