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=0.4 required=5.0 tests=BAYES_00,DATE_IN_PAST_24_48, FORGED_GMAIL_RCVD,FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d8e3cd3d8dbaa4fb X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Received: by 10.224.182.77 with SMTP id cb13mr1365709qab.5.1343314495642; Thu, 26 Jul 2012 07:54:55 -0700 (PDT) Received: by 10.66.86.72 with SMTP id n8mr1702335paz.24.1343314495057; Thu, 26 Jul 2012 07:54:55 -0700 (PDT) Path: a15ni105485768qag.0!nntp.google.com!q21no16378728qas.0!news-out.google.com!b9ni64916022pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!mauve.octanews.net!newspump.sol.net!94.232.116.11.MISMATCH!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.straub-nv.de!nuzba.szn.dk!pnx.dk!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Vasiliy Molostov" Newsgroups: comp.lang.ada Subject: Re: Ada "library only" compiler ? Date: Tue, 24 Jul 2012 22:01:47 +0400 Organization: None Message-ID: References: <2879c45e-f8e0-4434-9f82-968c585a4539@googlegroups.com> <87mx2ucags.fsf@ludovic-brenta.org> <500AA31F.8060004@obry.net> <500ed251$0$6189$ba4acef3@reader.news.orange.fr> NNTP-Posting-Host: Xw13RWgh8yxgPSv0x3+H9w.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.00 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-07-24T22:01:47+04:00 List-Id: Pascal Obry =D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0) =D0= =B2 =D1=81=D0=B2=D0=BE=D1=91=D0=BC =D0=BF=D0=B8=D1=81=D1=8C=D0=BC=D0=B5 = Tue, 24 Jul 2012 = 20:50:25 +0400: > > Randy, > >>> On Windows you interface to fopen() as done on >>> UNIXes I suppose or maybe to an even higher level using OpenFile(). >> >> Definitely not. We directly use the Win32 APIs for file functions (an= d = >> there >> is not one called fopen). The Win32 API is called "CreateFile", and i= t = >> is >> nothing much like the one from Unix or the one for C. > I said: > > Interfacing to a DLL is just like interfacing to C or whatever. > > And I still stand on it. DLL is a container, nothing to do with an API= . > > Pascal. > Perhaps I am out of the subject, but these are definitely different = things. Interfacing to any Win32 DLL is much simpler (since there are on= ly = linkable objects and clearly specified data structures), than interfacin= g = to C, where access to linkable objects are not enough, due to C standard= = preprocessor defined constructs, constants and variables. I mean that = interfacing to C is not the same as interfacing any other library object= . Since DLL is from MS land, there is no posix compatible interface to = attach (last news from ms presented that posix will not be supported any= = more) - and it is for now. You can imagine what that C interfacing on MS= = windows was a mess in 90's. Also, please, pay attention to the fact that C in that time was very = non-portable for that moment, and probably for now, and indeed it is one= = of reasons why we are writing about Ada here, as a portable programming = = language. Probably, you mean that formally writing source code interface is the sa= me = as for DLL and C, but practically these are not even like each other. -- = =D0=9D=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE =D0=B2 =D0=BF=D0=BE=D1=87= =D1=82=D0=BE=D0=B2=D0=BE=D0=BC =D0=BA=D0=BB=D0=B8=D0=B5=D0=BD=D1=82=D0=B5= =D0=B1=D1=80=D0=B0=D1=83=D0=B7=D0=B5=D1=80=D0=B0 Opera: http://www.oper= a.com/mail/