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,56250291936154a0 X-Google-Attributes: gid103376,public From: Ole-Hjalmar Kristensen Subject: Re: Where is the elusive jump command? Date: 2000/04/05 Message-ID: #1/1 X-Deja-AN: 606984717 Sender: ohk@gong2.clustra.com References: <38D771CA.D41AF9B5@port.ac.uk> <8bq7ku$mc8$1@nnrp1.deja.com> <38E0E723.C39C392@quadruscorp.com> <8brfm4$4uc$1@nnrp1.deja.com> <8brn4k$p6i$1@slb0.atl.mindspring.net> <8brrpj$i04$1@nnrp1.deja.com> <38E312F8.78883ACB@icn.siemens.de> <8c4rvf$d9k$1@nnrp1.deja.com> X-Complaints-To: abuse@telia.no X-Trace: news.telia.no 954928426 195.204.160.194 (Wed, 05 Apr 2000 11:53:46 CEST) Organization: Telia Internet Public Access NNTP-Posting-Date: Wed, 05 Apr 2000 11:53:46 CEST Newsgroups: comp.lang.ada Date: 2000-04-05T00:00:00+00:00 List-Id: Robert Dewar writes: > In article <38E312F8.78883ACB@icn.siemens.de>, > Alfred Hilscher wrote: > > > unfortunately, ALIASED is neccessary in most bindings to > > C-written APIs. > > Much less than may programmers think. For example it is usually > much more appropriate if the C parameter is *int to define > it as in out INT on the Ada side, so that the call looks like > > p (x); -- x need not be aliased > p (x'access); -- x must be aliased > > I perfectly well agree that this does not cover all cases, but > in my experience of looking at a LOT of code, I often see the > wrong approach here. > > But in any case, binding to C is hardly a topic that is > appropriate to people first learning the language! > Certainly, but writing bindings to C is one of the first things you have to do if you start using Ada for systems programming on Unix, unfortunately. > > Sent via Deja.com http://www.deja.com/ > Before you buy. -- E pluribus Unix