From: Jeffrey Carter <spam@spam.com>
Subject: Re: Libraries written in Ada
Date: Tue, 23 Nov 2004 18:39:22 GMT
Date: 2004-11-23T18:39:22+00:00 [thread overview]
Message-ID: <utLod.2059$NU3.1108@newsread1.news.pas.earthlink.net> (raw)
In-Reply-To: <pan.2004.11.23.13.53.09.112968@ID-174572.user.uni-berlin.de>
It's certainly possible to write a package that can be used from C
without worrying about runtime or initialization/finalization. Just
follow some simple rules:
* The package must be Pure or Preelaborate
* The package cannot be generic
* Do not use any tasking constructs
* Do not propagate any exceptions
* Any initialization and finalization must be provided by operations
that must be explicitly called by the user.
In other words, make it look just like a C library.
This is an issue that must be considered by people working on Ada OSes,
where the interface to the OS is in Ada, and other languages must use a
binding to the Ada version. It would be interesting to hear how they
deal with the matter.
--
Jeff Carter
"We use a large, vibrating egg."
Annie Hall
44
next prev parent reply other threads:[~2004-11-23 18:39 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-22 11:32 Libraries written in Ada Thomas Lotze
2004-11-22 15:58 ` Martin Krischik
2004-11-22 16:28 ` Thomas Lotze
2004-11-22 16:46 ` Alex R. Mosteo
2004-11-22 19:09 ` Pascal Obry
2004-11-23 11:12 ` Alex R. Mosteo
2004-11-22 17:59 ` Martin Krischik
2004-11-22 20:36 ` Thomas Lotze
2004-11-22 21:25 ` Georg Bauhaus
2004-11-22 21:45 ` Thomas Lotze
2004-11-22 22:07 ` Georg Bauhaus
2004-11-22 22:27 ` Thomas Lotze
2004-11-23 9:54 ` Adrien Plisson
2004-11-23 9:55 ` Martin Krischik
2004-11-23 9:55 ` Martin Krischik
2004-11-23 9:48 ` Martin Krischik
2004-11-23 11:03 ` Thomas Lotze
2004-11-23 11:38 ` Alex R. Mosteo
2004-11-23 12:22 ` Georg Bauhaus
2004-11-23 13:20 ` Alex R. Mosteo
2004-11-23 13:40 ` Alex R. Mosteo
2004-11-23 12:36 ` Martin Krischik
2004-11-23 13:53 ` Thomas Lotze
2004-11-23 18:39 ` Jeffrey Carter [this message]
2004-11-22 20:45 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox