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,3cfb384718eb4f7a X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Linux/POSIX packages for GNAT Date: 1998/02/23 Message-ID: #1/1 X-Deja-AN: 327883702 References: <34EEFF9C.1D01FA5D@stellar1.com> <1998Feb21.194544.1@eisner> <34ef8225.83906260@enews.newsguy.com> <34F007C5.7D9F2D7@cl.cam.ac.uk> <34F16525.17E166AA@cl.cam.ac.uk> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 888252949 8072 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-02-23T00:00:00+00:00 List-Id: Markus said <> That's fair enough. There are three possible solutions to your problems: 1. Use pragma Import to call whatever C functions you know and find useful. 2. Use the existing standardized binding to the the Posix functionality 3. Use some other binding that provides this functionality. Of these, at the present time, 1. is the easiest and the most portable. Furthermore, if you already are an experienced user of the Posix interface, I think you will find this the easiest approach. The standardized binding is not a completely thin binding, and will require some learning curve, whereas using approach 1 will require zero learning curve. <> That's the point, this is not at all obvious to me that this is the case, especially give someone who is familiar with the existing C interface. Indeed I would have thought it was clearly the case that it is more convenient to use pragma Import than a thickish binding. An aggressively thin binding might be more convenient (basically it would save you the trouble of writing the pragma Imports), but that is not what the standard provides. I wonder, have you actually studied the Ada standard in coming to your conclusions about convenience?