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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!enother.net!enother.net!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx31.iad.POSTED!not-for-mail From: Shark8 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:30.0) Gecko/20100101 Thunderbird/30.0a1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: If a routine should return two results, how should it be done? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Sat, 26 Jul 2014 20:10:56 UTC Organization: TeraNews.com Date: Sat, 26 Jul 2014 14:10:56 -0600 X-Received-Bytes: 1417 X-Received-Body-CRC: 2117745237 Xref: news.eternal-september.org comp.lang.ada:21266 Date: 2014-07-26T14:10:56-06:00 List-Id: On 26-Jul-14 12:57, Victor Porton wrote: > I want to create a thick Ada binding for the following C function: > > > char * raptor_uri_uri_string_to_filename_fragment > (const unsigned char *uri_string, > unsigned char **fragment_p); I think you're going about this backwards -- Try designing the API how you want, in "natural Ada" and /then/ use functionality from the linked C/C++/other-lang functions in some hidden part (private package, package body, etc).