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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9b6cb8bcc54f7ed4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s71.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Cairo Ada binding questions References: <4516b16a$0$31395$626a54ce@news.free.fr> In-Reply-To: <4516b16a$0$31395$626a54ce@news.free.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s71 1159133981 12.201.97.213 (Sun, 24 Sep 2006 21:39:41 GMT) NNTP-Posting-Date: Sun, 24 Sep 2006 21:39:41 GMT Date: Sun, 24 Sep 2006 21:39:41 GMT Xref: g2news2.google.com comp.lang.ada:6711 Date: 2006-09-24T21:39:41+00:00 List-Id: 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