Re: Implementing JAVA interfaces in FORTRAN 20xx



e p chandler wrote:
(snip)

Please explain how this does any real good in Fortran at all. As I
understand it, you can not pass an array of integers to a routine
which expects an array of elements, each of which is of derived type,
each of which consists only of an integer.

In Java, you can't have arrays of objects, but only
arrays of object reference variables. The closest you
would get in Fortran would be arrays of pointers.
Oops, no arrays of pointers, arrays of structures
containing pointers.

Now, can you use a pointer to integer equivalently
to a pointer to a structure containing only an
integer? Or one with the integer at the beginning?

-- glen

.



Relevant Pages

  • Re: address beyond array declaration
    ... >out that there really is difference between arrays and pointers that ... welcome to clc: http://www.ungerhu.com/jxh/clc.welcome.txt ...
    (comp.lang.c)
  • Re: Array comparison
    ... > Deep and recursive. ... the pointers and comparing their referents instead of comparing the ... >> arrays, then I think you also need to argue against assigning arrays. ... semantics (notably, reference counting). ...
    (alt.comp.lang.borland-delphi)
  • Re: double pointer
    ... Nor is it up to me, Deitel 1, Deitel 2, Schildt, ... that arrays are pointers, or that pointers are arrays, in C++. ...
    (comp.lang.c)
  • Re: Doubt about arrays name
    ... basicly pointers are arrays and arrays are pointers, ... but "int main" is better. ... In this case, for traversing a string, using int can't ...
    (comp.lang.c)
  • Re: Question about checking interfaces
    ... interfaces are provided? ... I will note that the ability to supply larger arrays than needed ... Specifying a larger array in the called routine is more likely ...
    (comp.lang.fortran)