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, MSGID_RANDY 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: Robert Dewar Subject: Re: Where is the elusive jump command? Date: 2000/04/01 Message-ID: <8c4rvf$d9k$1@nnrp1.deja.com>#1/1 X-Deja-AN: 605225671 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> X-Http-Proxy: 1.0 x36.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sat Apr 01 13:01:38 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-04-01T00:00:00+00:00 List-Id: 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! Sent via Deja.com http://www.deja.com/ Before you buy.