This is the mail archive of the guile@cygnus.com mailing list for the guile project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Per Bothner <bothner@cygnus.com> = 'Per' writes: Per>But I think we need to distinguish: Per>(1) the underlying one-dimensional array that a shared array descriptor Per>points to, and Per>(2) the address in memory of the first element of the array. Per> Per>The former is a SCM value. I still see no use for a Scheme Per>program to be able to access it. The latter is an (int*) or Per>a (double*) or even a (SCM*). It is useful in passing the data Per>to C or Fortran routines. Per> Per>Because the address of the first element is not a SCM value, Per>there should be no Scheme function to get it. It should Per>only be a function in the C API. (Of course the FFI glue Per>code should automatically get the address when specified.) I perfectly agree. I've meant the C API. Sorry for bad formulation. -- Best regards, V.Kamyshenko.