comp.lang.ada
 help / color / mirror / Atom feed
From: "Hakan" <yilmazhakan72@gmail.com>
Subject: Re: Ada to Interfacing C# (Urgent)
Date: 26 Mar 2006 01:12:39 -0800
Date: 2006-03-26T01:12:39-08:00	[thread overview]
Message-ID: <1143364359.336775.212220@t31g2000cwb.googlegroups.com> (raw)
In-Reply-To: <jhlVf.883459$xm3.725190@attbi_s21>

Jeffrey,

I have written pragma Controlled clause in my previous message by
mistake, actually it should be pragma Convention (C, Exception_Ptr).

Jeffrey R. Carter wrote:
> Hakan wrote:
> > I had also used the pragma Controlled clause.But not worked.
>
> Pragma Controlled simply prevents garbage collection, something that is not
> likely to happen with GNAT. It has nothing to do with interfacing to C.
>
> Pragma Convention (C, ...) tells the compiler to use the same representation for
> objects of the type that a C compiler would use. For access types, they will be
> represented as a C pointer.
>
> --
> Jeff Carter
> "I spun around, and there I was, face to face with a
> six-year-old kid. Well, I just threw my guns down and
> walked away. Little bastard shot me in the ass."
> Blazing Saddles
> 40




      reply	other threads:[~2006-03-26  9:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-24 18:30 Ada to Interfacing C# (Urgent) Hakan
2006-03-25  0:32 ` Jeffrey R. Carter
2006-03-25  8:09   ` Martin Krischik
2006-03-26 17:44     ` Hakan
2006-03-25  8:49   ` Hakan
2006-03-26  0:31     ` Jeffrey R. Carter
2006-03-26  9:12       ` Hakan [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox