Browse thread
Bigarray question
-
Thomas Fischbacher
-
Dmitry Bely
-
Thomas Fischbacher
-
Dmitry Bely
- Thomas Fischbacher
-
Dmitry Bely
-
Thomas Fischbacher
-
Dmitry Bely
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2005-11-28 (21:30) |
From: | Thomas Fischbacher <Thomas.Fischbacher@P...> |
Subject: | Re: [Caml-list] Bigarray question |
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)