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: Alfred Hilscher Subject: Re: Where is the elusive jump command? Date: 2000/04/04 Message-ID: <38E9DF06.DF38CFB6@icn.siemens.de>#1/1 X-Deja-AN: 606526239 Content-Transfer-Encoding: 7bit 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-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Siemens AG Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-04T00:00:00+00:00 List-Id: Robert Dewar wrote: > > 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. I totally agree that this would be the better way, but at least the Win32 bindings that I have are written in the "C-Style". > But in any case, binding to C is hardly a topic that is > appropriate to people first learning the language! Ok, that's true. But using C bindings (for GUI or database purposes) can also be a topic for non-(Ada)-experts.