From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Thomas Fischbacher <tf@functionality.de>
Cc: Caml-list List <caml-list@inria.fr>
Subject: Re: [Caml-list] Bigarray question
Date: Wed, 19 Dec 2007 18:47:16 +0100 [thread overview]
Message-ID: <47695924.8090202@inria.fr> (raw)
In-Reply-To: <476806F9.4030100@functionality.de>
> as far as I can tell, it is easy (but not explicitly allowed in the
> documentation) to allocate a Caml bigarray and change the data
> pointer inside that bigarray afterwards.
> There is no problem in implementing this, technically speaking.
> But this would require a change to the ML documentation stating
> that it is explicitly considered as permissible to change the
> data pointer in a bigarray. Can I get that, please?
I see no reason why this would cause problems, as long as the data
pointer points to C data of the right shape and dimensions. (Of
course, you could update the dimensions of the bigarray as
appropriate, if needed.) I don't think I would document this, as I
wouldn't quite know how to word it in the docs, but you have my
encouragements to try and report problems if any.
- Xavier Leroy
next prev parent reply other threads:[~2007-12-19 17:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-18 17:44 Thomas Fischbacher
2007-12-19 17:47 ` Xavier Leroy [this message]
2007-12-19 19:15 ` [Caml-list] " Thomas Fischbacher
2008-01-28 12:57 ` Thomas Fischbacher
-- strict thread matches above, loose matches on Subject: below --
2005-11-25 18:19 Thomas Fischbacher
2005-11-25 20:06 ` [Caml-list] " Dmitry Bely
2005-11-27 22:48 ` Thomas Fischbacher
2005-11-28 9:39 ` Dmitry Bely
2005-11-28 21:30 ` Thomas Fischbacher
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=47695924.8090202@inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=tf@functionality.de \
/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