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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,744136b4fae1ff3e,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-10 09:06:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: [Spark] Converting Arrays Date: Mon, 10 Mar 2003 17:06:28 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1047315988 14484 217.17.192.37 (10 Mar 2003 17:06:28 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Mon, 10 Mar 2003 17:06:28 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:35135 Date: 2003-03-10T17:06:28+00:00 List-Id: I run into a difficult problem (for me): $ cat test.ada <) of Character; procedure To_Fullpath (s : String; path : out Fullpath); --# derives path from s; end test; package body test is procedure To_Fullpath (s : String; path : out Fullpath) is begin path := Fullpath'(others => ASCII.NUL); for i in Positive range 1 .. s'Length loop path (path'First + i) := s (s'First + i); end loop; end To_Fullpath; end test; END $ spark test.ada ******************************************************* SPARK95 Examiner with VC and RTC Generator Release 6.3 / 11.02 Demonstration Version ******************************************************* DATE : 10-MAR-2003 18:05:17.49 Examining the specification of package test ... Examining the body of package test ... 10 path := Fullpath'(others => ASCII.NUL); ^ *** Semantic Error : 39: Illegal use of unconstrained type. ^ *** Semantic Error : 39: Illegal use of unconstrained type. ^ *** Semantic Error : 39: Illegal use of unconstrained type [Barnes 6.7]. Generating listing file test.lst ... Generating report file ... -----------End of SPARK Examination-------------------------------- Any idea, how to write this correctly?