caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Thomas Fischbacher <Thomas.Fischbacher@Physik.Uni-Muenchen.DE>
To: Dmitry Bely <dbely@mail.ru>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Bigarray question
Date: Mon, 28 Nov 2005 22:30:31 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.61.0511282227350.15620@eiger.cip.physik.uni-muenchen.de> (raw)
In-Reply-To: <ek51w1pc.fsf@mail.ru>


On Mon, 28 Nov 2005, Dmitry Bely wrote:

> 1. For the current implementation it's safe (use Data_bigarray_val(v) to
> change the data pointer). I don't see any reason why it could become unsafe.
> 2. It is up to you whether to use this feature or not.

I will neither use undocumented programming techniques, nor recommend 
doing so to other programmers, no matter what kind of language. That would 
- quite in general - be a very bad habit that eventually must lead to bugs 
that are hard to impossible to diagnose and debug.

Assigning to Data_bigarray_val is not explicitly permitted.

Nevertheless, being allowed to do so would be helpful. So, a simple change 
to the documentation would suffice to make me happy.

-- 
regards,               tf@cip.physik.uni-muenchen.de              (o_
 Thomas Fischbacher -  http://www.cip.physik.uni-muenchen.de/~tf  //\
(lambda (n) ((lambda (p q r) (p p q r)) (lambda (g x y)           V_/_
(if (= x 0) y (g g (- x 1) (* x y)))) n 1))                  (Debian GNU)


  reply	other threads:[~2005-11-28 21:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2007-12-18 17:44 Thomas Fischbacher
2007-12-19 17:47 ` [Caml-list] " Xavier Leroy
2007-12-19 19:15   ` Thomas Fischbacher
2008-01-28 12:57   ` 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=Pine.LNX.4.61.0511282227350.15620@eiger.cip.physik.uni-muenchen.de \
    --to=thomas.fischbacher@physik.uni-muenchen.de \
    --cc=caml-list@inria.fr \
    --cc=dbely@mail.ru \
    /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).