comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.not.jrcarter@acm.not.spam.org>
Subject: Re: Cairo Ada binding questions
Date: Sun, 24 Sep 2006 21:39:41 GMT
Date: 2006-09-24T21:39:41+00:00	[thread overview]
Message-ID: <xWCRg.160092$FQ1.97481@attbi_s71> (raw)
In-Reply-To: <4516b16a$0$31395$626a54ce@news.free.fr>

Damien Carbonne wrote:
> 
> My trouble is with a thick Ada API. I will try to explain it with an
> example.
> Cairo has a concept of Surface class that can is specialized into PDF 
> Surface, SVG surface, etc. In the C API, Surfaces (as all Cairo 
> "classes") are always manipulated through pointers. As a Surface can be 
> shared, the C API provides a way to increment / decrement the reference 
> counter.
> So, I see here two concepts : Surface and Surface Handle.

The pointers seem to be a C implementation artifact, and should probably 
be hidden from the thick binding's clients.

-- 
Jeff Carter
"C++ is like jamming a helicopter inside a Miata
and expecting some sort of improvement."
Drew Olbrich
51



      parent reply	other threads:[~2006-09-24 21:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-24 16:25 Cairo Ada binding questions Damien Carbonne
2006-09-24 19:50 ` Dmitry A. Kazakov
2006-09-24 20:43 ` tmoran
2006-09-24 21:39 ` Jeffrey R. Carter [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