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,ff744c4726ec64fd,start X-Google-Attributes: gid103376,public From: tmoran@bix.com Subject: Re: What is differance between thick and thin binding? Date: 1999/08/09 Message-ID: #1/1 X-Deja-AN: 510804164 References: <934219556.19836@www.remarq.com> X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.snfc21.pbi.net 934233892 206.170.2.192 (Mon, 09 Aug 1999 14:24:52 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Mon, 09 Aug 1999 14:24:52 PDT Newsgroups: comp.lang.ada Date: 1999-08-09T00:00:00+00:00 List-Id: There was a thread on this some months ago (check dejavu) where somebody gave a nice, succinct, explanation. There's a much more elaborate discussion in our TriAda paper on Claw, available at www.rrsoftware.com A thin binding retains the style of the original. It has just enough changes to make it legal Ada, instead of C (or whatever). A very thin binding can largely be generated by a program. A thick binding has an Ada style - it uses overloading, exceptions instead of function return values, Ada-ish names, type checking, Controlled records, etc. and generally looks like something an Ada programmer would have designed. The abstraction level is normally much higher than the thin binding and a lot of the details have already been handled. There are of course different degrees of thickness. For instance, Claw contains the Windows message loop internally, hiding all sorts of messy details, but the procedure Claw.Edit.Empty_Undo_Buffer merely encapsulates sending an EM_EMPTYUNDOBUFFER message to the window. A really thick binding, such as Java or Tcl/Tk, can present the same abstraction across different platforms, but at the cost of making it difficult to get a "Windows look and feel". You pays your money and you takes your choice.