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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c3bb5e0c8d486559 X-Google-Attributes: gid103376,public From: mg@dsd.camb.inmet.com (Mitch Gart) Subject: Re: Quality of Thin Bindings (was: Programming X Windows...) Date: 1996/10/24 Message-ID: #1/1 X-Deja-AN: 191738338 sender: news@inmet.camb.inmet.com (USENET news) x-nntp-posting-host: dsd.camb.inmet.com references: <1996Oct22.223350.1@eisner> organization: Intermetrics, Inc. newsgroups: comp.lang.ada Date: 1996-10-24T00:00:00+00:00 List-Id: Larry Kilgallen (kilgallen@eisner.decus.org) wrote: : I have looked at the Win32 bindings which come with ObjectAda 7.0 : and it seems to me they rely excessively on a single integer type. The problem is that Win32Ada doesn't represent an independent design of an API, it is a translation of a Microsoft API into Ada. If Microsoft uses universal integer types everywhere, so must the binding. Consider a simple example: #define MASK1 1 #define MASK2 2 #define MASK3 4 In Ada is this a series of integer constants or an enumeration? It's tempting to say it should be an enumeration but then what about functions in the binding that take integer parameters and return integer results? Some of those functions may in fact take mask values or return mask results from this enumeration, but how can the person writing the binding be sure of the intentions of the original authors of the C software? This kind of question is one reason why Win32Ada is at such a direct one-for-one level with the original C software. I and others have said many times that it would be good to think of a binding like Win32Ada as a low level layer upon which other higher level layers could be built. I would encourage people to use Win32Ada as a base level and build higher level Ada bindings to specific small parts of the Win32 API, for example MAPI or OLE or ODBC or Video For Windows. (snip) : I don't know what ACT might be doing to strengthen Starlet (snip) I'm guessing that the people who invented Starlet had two advantages: - VMS and Starlet were both Digital products so presumably the people working on Starlet were able to easily talk to the VMS people - DEC was at one time funding Starlet development and saw Ada as a money-making business area. Mitch Gart