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-Thread: 103376,714a40eb8c53061d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 09 Aug 2011 16:48:13 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ADA and Open GL References: <4e4144df$0$2573$703f8584@news.kpn.nl> In-Reply-To: <4e4144df$0$2573$703f8584@news.kpn.nl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4e4148ae$0$6547$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 09 Aug 2011 16:48:14 CEST NNTP-Posting-Host: 8b82dc37.newsspool4.arcor-online.net X-Trace: DXC=WhjJmRNCLiWf8j24CD<3lP4IUKZLh>_cHTX3j][[?@KJmM3HY X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:21467 Date: 2011-08-09T16:48:14+02:00 List-Id: On 09.08.11 16:31, ldries46 wrote: > glutCreateWindow( pwin ); -- Create the Window PROBLEM ignored_window_identifier := glutCreateWindow( pwin ); The function glutCreateWindow returns a value. The Ada mapping, then, will also return this value, as programmers might want to keep it. If you do not need the return value, the program must still follow Ada rules which state that all parameters of a subprograms must be handled, be they in, in out, out or return.