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-Thread: 103376,1cb75f0476fe2d1a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!newsfeed.inode.at!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Half Constrained Array Types and Slices Date: Mon, 06 Mar 2006 19:50:56 +0100 Organization: Cablecom Newsserver Message-ID: <1215441.0vAIdqtpHT@linux1.krischik.com> References: NNTP-Posting-Host: 84-74-134-212.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1141671606 13348 84.74.134.212 (6 Mar 2006 19:00:06 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Mon, 6 Mar 2006 19:00:06 +0000 (UTC) User-Agent: KNode/0.10.1 Xref: g2news1.google.com comp.lang.ada:3279 Date: 2006-03-06T19:50:56+01:00 List-Id: Larry Kilgallen wrote: > In article , Robert A Duff > writes: >> Kilgallen@SpamCop.net (Larry Kilgallen) writes: >> >>> In article , >>> "Jeffrey R. Carter" writes: >>> >>> > In Ada we have constrained and unconstrained array types; I call this >>> > a "half constrained" array type so we have names for all of them. >>> > Since his language doesn't have box, I presume an unconstrained array >>> > type would be: >>> > >>> > type Unconstrained (Lo : Positive; Hi : Natural) is array (Lo .. Hi) >>> > of Component; >>> >>> That looks to me very much like Pascal. >> >> Really? I don't know any version of Pascal that allows anything like >> that. > > VAX/DEC/HP Pascal uses something like that not in a type declaration > but in describing the type of a routine parameter. Yep. It's an optional feature of ISO pascal. Not many pascal compiler actually implemented it. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com