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,965fbd9798ca1677 X-Google-Attributes: gid103376,public From: lutz@iks-jena.de (Lutz Donnerhacke) Subject: Re: Return by reference Date: 1999/11/04 Message-ID: #1/1 X-Deja-AN: 544399913 Distribution: world Content-Transfer-Encoding: 8bit References: Content-Type: text/plain; charset=ISO-8859-1 Organization: IKS GmbH Jena Mime-Version: 1.0 User-Agent: slrn/0.9.5.7 (UNIX) Newsgroups: comp.lang.ada Date: 1999-11-04T00:00:00+00:00 List-Id: * Brian Rogoff wrote: >Thanks for the code, but I already know how to do this with a type whose >public view is limited and its private view, not limited. I was wondering >if I can do this entirely with minimal potential copying. Of course it is possible. The idea is to deal with a pointer to a dynamic array only. The Format function allocates and the To_String function releases the memory. Please drop me any notes on the source or include it to other projects. ftp://ftp.iks-jena.de/pub/mitarb/lutz/ada/formatted_print/