comp.lang.ada
 help / color / mirror / Atom feed
* Should thick bindings throw an exception?
@ 2014-07-27 16:07 Victor Porton
  2014-07-27 18:25 ` tmoran
  0 siblings, 1 reply; 3+ messages in thread
From: Victor Porton @ 2014-07-27 16:07 UTC (permalink / raw)


Should a thick bindings of a C function, which returns non-0 on failure,
instead throw an exception on failure?

By the way, should I define a new exception or use one of language pre-
defined exception?

The description of the C function follows:

int raptor_uri_print (const raptor_uri *uri, FILE *stream);

Print a URI to a file handle.

uri :
	URI to print

stream :
	The file handle to print to

Returns :
	non-0 on failure

-- 
Victor Porton - http://portonvictor.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-28 22:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-27 16:07 Should thick bindings throw an exception? Victor Porton
2014-07-27 18:25 ` tmoran
2014-07-28 22:19   ` Randy Brukardt

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