comp.lang.ada
 help / color / mirror / Atom feed
From: Maurizio Tomasi <ziotom78@gmail.com>
Subject: Re: Thick bindings to a C library and gnattest: suggestions?
Date: Mon, 1 Jul 2013 05:41:53 -0700 (PDT)
Date: 2013-07-01T05:41:53-07:00	[thread overview]
Message-ID: <6b49164e-2740-4f0d-9379-964a56e8ae27@googlegroups.com> (raw)
In-Reply-To: <5m9o5ouj1e2i.1h3w3i0aa3938$.dlg@40tude.net>

On Monday, July 1, 2013 2:32:27 PM UTC+2, Dmitry A. Kazakov wrote:
> The first point is that it is not the objective of bindings to manage
> memory. Of course, there could be bindings which do that, in which case you
> would allocate objects transparently to the caller and have some garbage
> collection schema behind opaque handles to the objects. This is a possible
> design but it is not what you probably wanted. So let us take for granted
> that it is the client's responsibility to allocate objects. In this case
> the bindings shall work for any kind of objects allocated in any possible
> memory pool, stack included.

Thanks a lot for your long and detailed answer, Dmitry! Your suggestion of letting the client do all the memory management stuff is very reasonable and flexible. I'll try to do that.

Cheers,
  Maurizio.

  reply	other threads:[~2013-07-01 12:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-01  9:02 Thick bindings to a C library and gnattest: suggestions? ziotom78
2013-07-01  9:45 ` Dmitry A. Kazakov
2013-07-01 11:11   ` Maurizio Tomasi
2013-07-01 11:41     ` Simon Wright
2013-07-01 12:00       ` Maurizio Tomasi
2013-07-01 12:42         ` Dmitry A. Kazakov
2013-07-01 19:07           ` Simon Wright
2013-07-01 12:32     ` Dmitry A. Kazakov
2013-07-01 12:41       ` Maurizio Tomasi [this message]
2013-07-01 12:47       ` Simon Wright
2013-07-02  8:55     ` Georg Bauhaus
2013-07-02  8:33   ` Maurizio Tomasi
2013-07-02  8:58     ` Dmitry A. Kazakov
2013-07-02 16:58     ` Robert A Duff
2013-07-02 17:00     ` Jeffrey Carter
2013-07-01 17:16 ` Jeffrey Carter
2013-07-02  4:24   ` Randy Brukardt
2013-07-02  4:37     ` Shark8
2013-07-02  5:04     ` tmoran
2013-07-02 22:27       ` Randy Brukardt
2013-07-03 12:02   ` Jacob Sparre Andersen
2013-07-02  3:16 ` Jerry
2013-07-02  4:02   ` Shark8
replies disabled

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