caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Dmitry Bely <dmitry.bely@gmail.com>
To: OCaml List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Errors in the manual
Date: Tue, 1 Mar 2011 17:05:32 +0300	[thread overview]
Message-ID: <AANLkTimJSHNLWoiWOGfj7MPCGvJhLE9Pp84edM7yDcXr@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikqfEK04RbZ1VzJ2=L3DV7eir-YUOYmRmvseOH1@mail.gmail.com>

On Tue, Mar 1, 2011 at 4:37 AM, Niki Yoshiuchi <aplusbi@gmail.com> wrote:
> While we are on the topic...
>
> A lot of the C functions/macros have different names in the manual.
> For example, the Bigarray allocation functions are called
> "alloc_bigarray" and "alloc_bigarray_dims" in the manual
> (http://caml.inria.fr/pub/docs/manual-ocaml/manual043.html) but are
> actually "caml_ba_alloc" and "caml_ba_alloc_dims".  I've noticed a
> couple other discrepancies (I think they all dealt with allocations,
> actually).

Names without caml_ prefix are "old" ones. They are equal to prefixed
names until CAML_NAME_SPACE macro is defined:

#define alloc_bigarray caml_ba_alloc
#define alloc_bigarray_dims caml_ba_alloc_dims

For more details see caml/compatibility.h

- Dmitry Bely


      parent reply	other threads:[~2011-03-01 14:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01  1:31 Elnatan Reisner
2011-03-01  1:37 ` Niki Yoshiuchi
2011-03-01  8:09   ` Daniel Bünzli
2011-03-01 14:05   ` Dmitry Bely [this message]

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=AANLkTimJSHNLWoiWOGfj7MPCGvJhLE9Pp84edM7yDcXr@mail.gmail.com \
    --to=dmitry.bely@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;
as well as URLs for NNTP newsgroup(s).