Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jonathan Roewen <jonathan.roewen@gmail.com>
To: caml-list@yquem.inria.fr
Subject: [Caml-list] Allocating a caml string in C...
Date: Sat, 28 Jan 2006 13:10:48 +1300	[thread overview]
Message-ID: <ad8cfe7e0601271610s5cd14b62l885c90053aabb55f@mail.gmail.com> (raw)

Hi,

I was wondering if it's safe to allocate a caml string in C -before-
the runtime is initialised.

IE: something like the following:

value version;
void main() {
  version = caml_copy_string(DST_VERSION);
  /* startup the system! */
  caml_startup(args);
}

Of course, this example is pretty silly, but a more complex example
does exist ;-)

Jonathan


             reply	other threads:[~2006-01-28  0:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-28  0:10 Jonathan Roewen [this message]
2006-02-01 15:12 ` Damien Doligez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ad8cfe7e0601271610s5cd14b62l885c90053aabb55f@mail.gmail.com \
    --to=jonathan.roewen@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox