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,5e2029689121453e X-Google-Attributes: gid103376,public From: mg@asp.camb.inmet.com (Mitch Gart) Subject: Re: binding thickness indicator, was Re: GNAT, OS/2, Libraries Date: 1996/04/17 Message-ID: #1/1 X-Deja-AN: 148007355 sender: news@inmet.camb.inmet.com (USENET news) x-nntp-posting-host: asp.camb.inmet.com references: <4kjaib$bhc@news2.delphi.com> organization: Intermetrics, Inc. newsgroups: comp.lang.ada Date: 1996-04-17T00:00:00+00:00 List-Id: tmoran@bix.com wrote: : I propose we use something analogous to house insulation 'R-values' : for indicating the thickness of a binding. R1 would be the thinnest : possible, a la single pane window glass, like Tore's example of : interfacing to a C routine. R50 would indicate such thickness and : insulation that, say, code using an R50 windowing GUI binding would be : portable across Mac, Windows, OS/2, and X-Windows. R5 might be the : Ada flavor he mentions (type and range checked parameters, raise : exception instead of returning success/fail flag, etc) , but pretty : much still tied to the particular design, style, and widget offerings : of a particular system. Clearly not an exact measurement, but : somewhat more specific than thick/thin. A good way of measuring the thickness is the size of the Ada package bodies and supporting code relative to the Ada package specifications. If almost everything can be done in the Ada package spec with type, data, constant, and interfaced subprogram declarations, the binding is very thin. The more code that's needed in the bodies, the thicker the binding. For example X11Ada, which I consider to be a thin binding, contains 15K (non-blank, non-comment) lines in package specs and 6K lines in package bodies. 72% of the code is in the specs. - Mitch Gart