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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,43d910f082521047 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.180.105.38 with SMTP id gj6mr1598127wib.0.1344325892463; Tue, 07 Aug 2012 00:51:32 -0700 (PDT) Path: n2ni6586065win.0!nntp.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!xlned.com!feeder1.xlned.com!border2.nntp.ams.giganews.com!border2.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!ctu-peer!news.nctu.edu.tw!goblin1!goblin2!goblin.stu.neva.ru!feeder2.ecngs.de!ecngs!feeder.ecngs.de!news.osn.de!diablo2.news.osn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: questions on Ada openGL binding in the GLOBE3D packages Date: Thu, 02 Aug 2012 13:19:56 +0300 Organization: Tidorum Ltd Message-ID: References: Mime-Version: 1.0 X-Trace: individual.net yRZxI/oWNnC1oNT4sJcg4Q1/WW/2mjn09ipUld7HN0Q/a58pK+z/LORxhC7n3+u8tN Cancel-Lock: sha1:iay4+8i9r5QF6OLq9mw3kszx+9E= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: 2012-08-02T13:19:56+03:00 List-Id: On 12-08-02 12:14 , Nasser M. Abbasi wrote: > On 8/2/2012 3:50 AM, Egil H�vik wrote: >> From the OpenGL spec: >> "The declarations shown in this document apply to ANSI C. >> Languages such as C++ and Ada that allow passing of argument type >> information >> admit simpler declarations and fewer entry points." >> > >> So no, the names in an Ada-binding does not have to exactly match the >> C version. > > I know they do NOT HAVE TO be the same as C. That is my point. > > They do NOT have to, yes, but it is _better_ if they DO. Subjective opinion and matter of taste. FWIW, I prefer the Ada-style names. The changes (at least in the examples you showed) are so systematic and simple that it is easy to translate in one's mind, when necessary. > Why not keep the names the same? The C-style names are needlessly long and tedious. The "gl" prefix is necessary (well, almost) in C, for name-space reasons, but unnecessary in Ada. If you like, in your Ada code you can include the prefix by using the GL package name to qualify the names. Adding a period to change glVertex2d into GL.Vertex2d is hardly difficult. IMO, it is neater and less trouble to use the same style of identifiers for my native Ada code and for the bound libraries from other languages. I think that is one of the desirable features of a binding, even a thin binding. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .