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,54e6f3bfd18d2769 X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: Pointer function parameter Date: 2000/10/19 Message-ID: <39EEEBA3.5F77D257@acm.org>#1/1 X-Deja-AN: 683373849 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en X-Server-Date: 19 Oct 2000 12:40:05 GMT Content-Type: text/plain; charset=us-ascii Organization: Quadrus Corporation Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-10-19T12:40:05+00:00 List-Id: While there are a lot of uses for access types, what needs to be carefully explained to the C programmer approaching Ada is that in Ada you need access/address a WHOLE*LOT*LESS than you do in C. C programmers will typically start trying to write Ada code with C semantics and instead of "in out" parameters, will start passing 'Address or 'Access of everything to everything. I've seen it done. Its not pretty. It would be instructive to the C programmer approaching Ada to observe very vigorously that while Ada has the means to get pointers to everything, that doesn't mean one should do so with the same regularity one might in C. MDC Mario Amado Alves wrote: > And surely there is a _lot_ of uses of access types besides interfacing to > C: virtually all dynamic data structures (linked lists, trees, etc.) > require them. -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Giving money and power to Government is like giving whiskey and car keys to teenage boys." -- P. J. O'Rourke ======================================================================