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,2cb1f0b6d642e1dc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.bbs-scene.org!xmission!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Pascal Calling Convention Date: Wed, 30 Mar 2011 14:10:25 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <9b04626e-567d-408c-aab3-39b964b3ffd6@l2g2000prg.googlegroups.com> <4d90efdd$1$14806$882e7ee2@usenet-news.net> <330393be-cb82-4cd8-ba44-6e59af7b75bf@v11g2000prb.googlegroups.com> <4d90fd41$1$14782$882e7ee2@usenet-news.net> <4d9148d2$1$14782$882e7ee2@usenet-news.net> <9d1b632e-8185-40b6-b1e3-4781cb8bbe60@b22g2000prb.googlegroups.com> <8c1a9aac-cd54-4528-a771-0190eaec94e2@t19g2000prd.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1301508625 5442 192.74.137.71 (30 Mar 2011 18:10:25 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 30 Mar 2011 18:10:25 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:+IU2IcqP1jOopYxmRGZPg+5JnHQ= Xref: g2news2.google.com comp.lang.ada:19578 Date: 2011-03-30T14:10:25-04:00 List-Id: Adam Beneschan writes: > Well, if this feature actually *were* added (ha), it should probably > be allowed on any discrete subtype. Using it on a subrange wouldn't > gain you much: > > subtype T is Integer range 1 .. 100; > type T_Array is array (natural range <>) of T; > X : T_Array (1..100) := (others => T'Arbitrary_Value); > > A compiler would most likely just generate the same code as (others => > T'First). But it still would be useful to have this available in case > T is a generic formal type. What would it do for "subtype T is Integer range 1..0;"? ;-) - Bob