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: a07f3367d7,43d910f082521047 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.74.40 with SMTP id q8mr1614354pav.19.1344325203748; Tue, 07 Aug 2012 00:40:03 -0700 (PDT) MIME-Version: 1.0 Path: g9ni3232135pbo.0!nntp.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!ctu-peer!news.nctu.edu.tw!goblin1!goblin.stu.neva.ru!nuzba.szn.dk!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: questions on Ada openGL binding in the GLOBE3D packages Date: Thu, 2 Aug 2012 15:59:52 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1343941210 1114 69.95.181.76 (2 Aug 2012 21:00:10 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 2 Aug 2012 21:00:10 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Received-Bytes: 2980 Date: 2012-08-02T15:59:52-05:00 List-Id: "Niklas Holsti" wrote in message news:a7v2ieFpstU1@mid.individual.net... ... > 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. Not to mention that automated style-checking tools would reject/modify names in mixed case style. (It's a clear violation of pretty much every Ada style guide I've ever seen. And personally, whenever I type identifiers, they naturally come out in the Ada style. On the rare occassions when they need to be in some other style (as in specifing link names in interfacing pragmas), I usually have to type them several times. Ergo, if you want a binding to be useful to the experienced Ada programmer, it has to use identifiers that fit the style of experienced Ada programmers. IMHO, I do agree with you that a binding that changes the names is not a "thin" binding. "Thin" bindings are unusable; they should only be used for temporary (one-off) code. Anything else needs at least what I call a "medium" binding: routines with similar semantics to the original ones, but an Ada-ized interface with better names, far fewer pointers, and exceptions rather than error codes. (The project that became Claw was originally intended to produce a "medium" binding for Win32. Eventually it morphed into Claw, a classic "thick" binding.) (I don't want any of my code to *ever* look anything like C -- I want clean, elegant code, not barely intelligible symbols and loads of dangerous pointers. YMMV. :-) Randy.