caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Raising invalid_argument with a constructed string.
@ 2016-11-28 14:39 immanuel litzroth
  2016-11-28 15:43 ` David Allsopp
  2016-12-03 13:20 ` Richard W.M. Jones
  0 siblings, 2 replies; 8+ messages in thread
From: immanuel litzroth @ 2016-11-28 14:39 UTC (permalink / raw)
  To: OCaML List Mailing

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

caml_invalid_argument(str) is no return and does not free it's
argument.
So calling it with a string constructed dynamically will mean it'll never
get freed.
I could construct an ocaml string and pass that to caml_raise_with_arg,
but I don't seem to be able to get to the caml_exn_Invalid_argument from
c. Am I missing something?
Immanuel

[-- Attachment #2: Type: text/html, Size: 449 bytes --]

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

end of thread, other threads:[~2016-12-03 19:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-28 14:39 [Caml-list] Raising invalid_argument with a constructed string immanuel litzroth
2016-11-28 15:43 ` David Allsopp
2016-11-28 15:50   ` Gabriel Scherer
2016-11-29 10:21     ` immanuel litzroth
2016-12-03 13:20 ` Richard W.M. Jones
2016-12-03 14:00   ` immanuel litzroth
2016-12-03 19:36     ` Richard W.M. Jones
2016-12-03 19:44       ` Gabriel Scherer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).