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,7d8ad14b2bbc7921 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-24 10:16:40 PST Path: archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!news-out.superfeed.net!propagator2-maxim!news-in-maxim.spamkiller.net!tethys.csu.net!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: unconstrained array question References: <4948f537.0311220939.7e05afbf@posting.google.com> <4948f537.0311222312.43d843c5@posting.google.com> <4948f537.0311231003.3b36b880@posting.google.com> <4948f537.0311240940.4737d3c2@posting.google.com> In-Reply-To: <4948f537.0311240940.4737d3c2@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 24 Nov 2003 18:16:39 GMT NNTP-Posting-Host: 63.184.32.101 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1069697799 63.184.32.101 (Mon, 24 Nov 2003 10:16:39 PST) NNTP-Posting-Date: Mon, 24 Nov 2003 10:16:39 PST Xref: archiver1.google.com comp.lang.ada:2909 Date: 2003-11-24T18:16:39+00:00 List-Id: shoko wrote: > type Arr is Array(integer range<>) of Character; > > function Get_Text (Control : Multiline_Type; > Line : Natural := 0) return String is abstract; > ---------------------------------------------------- > Now all i want to do is: > > declare > a : Arr := Arr(Get_Text(value)); > begin > something; > end; > -------------------------------------- > > How can i convert abstract String to my ARR type? You seem to have some confusion about "is abstract". Your understanding of basic Ada concepts seems to be poor. You should really work through some of the tutorials on www.adapower.com or an Ada textbook before trying to do this kind of stuff. "is abstract" refers to the subprogram, not to String. An abstract subprogram cannot be called. You'll have to provide a non-abstract version of Get_Text. -- Jeff Carter "If you think you got a nasty taunting this time, you ain't heard nothing yet!" Monty Python and the Holy Grail 23