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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6491d3799d35186b X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: String parameters to exported routines - What should a compiler do? Date: 1997/06/07 Message-ID: #1/1 X-Deja-AN: 246817117 References: Organization: New York University Newsgroups: comp.lang.ada Date: 1997-06-07T00:00:00+00:00 List-Id: Bob Duff said <<>Here is an example: > > procedure S (Item : String); > pragma Export (C, S); > >Should this be legal or should the declaration of S be rejected? IMHO it should be legal. >> and then goes on to mumble about what it might actually mean :-) :-) In my view this should be illegal. One could supply default bounds, e.g. in this case 1 .. Natural'Last, but I do not consider this helpful. If you want to deal with the type subtype Big_String is String (Natural); then it is better to do so explicitly