From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: questions on Ada openGL binding in the GLOBE3D packages
Date: Thu, 2 Aug 2012 15:59:52 -0500
Date: 2012-08-02T15:59:52-05:00 [thread overview]
Message-ID: <jvepop$12q$1@munin.nbi.dk> (raw)
In-Reply-To: a7v2ieFpstU1@mid.individual.net
"Niklas Holsti" <niklas.holsti@tidorum.invalid> 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.
next prev parent reply other threads:[~2012-08-07 7:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <jvddr3$uqm$1@speranza.aioe.org>
2012-08-02 8:50 ` questions on Ada openGL binding in the GLOBE3D packages Egil Høvik
2012-08-02 9:14 ` Nasser M. Abbasi
2012-08-02 10:19 ` Niklas Holsti
2012-08-02 10:46 ` Nasser M. Abbasi
2012-08-02 11:12 ` Egil Høvik
2012-08-02 11:56 ` Georg Bauhaus
2012-08-02 12:12 ` Vasiliy Molostov
2012-08-02 12:01 ` Vasiliy Molostov
2012-08-02 21:12 ` Randy Brukardt
2012-08-02 20:59 ` Randy Brukardt [this message]
2012-08-02 12:13 ` Brian Drummond
2012-08-02 15:01 ` Robert A Duff
2012-08-02 21:18 ` Randy Brukardt
2012-08-02 23:15 ` Robert A Duff
2012-08-02 15:31 ` Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox