comp.lang.ada
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
Subject: Should thick bindings throw an exception?
Date: Sun, 27 Jul 2014 19:07:56 +0300
Date: 2014-07-27T19:07:56+03:00	[thread overview]
Message-ID: <lr384q$kgn$1@speranza.aioe.org> (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


             reply	other threads:[~2014-07-27 16:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-27 16:07 Victor Porton [this message]
2014-07-27 18:25 ` Should thick bindings throw an exception? tmoran
2014-07-28 22:19   ` Randy Brukardt
replies disabled

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