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,133de21eb82605b X-Google-Attributes: gid103376,public From: gavin@praxis-cs.co.uk (Gavin Finnie) Subject: Re: How do functions return unbounded arrays? Date: 1998/06/17 Message-ID: <6m80o6$9st$1@erlang.praxis-cs.co.uk>#1/1 X-Deja-AN: 363458197 References: <358444BA.757121D8@cl.cam.ac.uk> <1998061518584100.OAA28557@ladder01.news.aol.com> <35865075.9D7DCBD@cl.cam.ac.uk> Organization: Praxis Critical Systems Limited, U.K. Newsgroups: comp.lang.ada Date: 1998-06-17T00:00:00+00:00 List-Id: In article <35865075.9D7DCBD@cl.cam.ac.uk>, Markus Kuhn wrote: >Are functions that return variable length arrays forbidden in >Ada subsets for safety critical applications? They are in general forbidden in SPARK. However, the "&" operator is allowed on string literals as you would expect a compiler to handle this case statically. Gavin Finnie email: gavin@praxis-cs.co.uk Praxis Critical Systems Ltd 20 Manvers Street phone: +44-225-466991 Bath BA1 1PX, England fax: +44-225-469006