comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Cairo Ada binding questions
Date: Sun, 24 Sep 2006 15:43:29 -0500
Date: 2006-09-24T15:43:29-05:00	[thread overview]
Message-ID: <OIWdnWftzuBscIvYnZ2dnUVZ_uudnZ2d@comcast.com> (raw)
In-Reply-To: 4516b16a$0$31395$626a54ce@news.free.fr

>My trouble is with a thick Ada API.
>...
>There is also another solution, that would consist in hiding the Surface
>concept, providing only the Surface_Handle one.
  How about letting the user deal with Surfaces, ie, his problem space,
and you deal with handles and reference counts in the computer-centric
view.  It will be more work for you, but you did say you're trying to
make a thick binding.
  With the CLAW thick binding to MS Windows, for instance, we have
type Root_Window_Type is abstract new Ada.Finalization.Controlled with private;
and the user works with various descendants of Root_Window_Type while CLAW
uses dispatching to call the routines specific to that child, and
typically uses inherited routines for things in common like reference
counting.

>Any advice would be appreciated !
  You might want to read:
http://www.rrsoftware.com/html/prodinf/triadapaper/triada.docsrc.html



  parent reply	other threads:[~2006-09-24 20:43 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 [this message]
2006-09-24 21:39 ` Jeffrey R. Carter
replies disabled

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