TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Date: Sun, 28 Jan 2001 16:14:55 -0800
Reply-To: Tom Moran <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Decision Aids
From: Tom Moran <[log in to unmask]>
Parts/Attachments: text/plain (11 lines)
> is tehre a AddressOf() command
> to simulate a pointer for a Standard C or API function call
 X'Access.  But look at your compiler docs.  Looking at the info for one
Ada 95 compiler I see "Ada 'in' parameters map to normal C parameters;
types are converted as necessary for most scalar types.  For non-scalar
types, a pointer at the object is passed to C.  This corresponds to the
normal *struct passing of C.  Ada 'in out' parameter map to *type
parameters in C.  *type parameters can also be mapped to access types or
to System.Address."  Some compilers have a special pragma to let you
pass non-scalars by value rather than reference.  Check your docs.