Re: Implementing JAVA interfaces in FORTRAN 20xx
- From: e p chandler <epc8@xxxxxxxx>
- Date: Mon, 25 Aug 2008 16:33:52 -0700 (PDT)
On Aug 25, 8:17 pm, glen herrmannsfeldt <g...@xxxxxxxxxxxxxxxx> wrote:
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
I just want to
call wonder_routine(int_array)
where int_array is an ordinary array of integers. I don't care what
the routine does underneath. I do know that I get a type mismatch
error when I pass an array of integers to a routine expecting an array
of a derived type.
So right now I'm close to serious mirth when what I thought was a
relatively straight forward question about Fortran is answered in
terms of Java _and_ the properties of pointers in C! :-)
- e
.
- Follow-Ups:
- References:
- Re: Implementing JAVA interfaces in FORTRAN 20xx
- From: fj
- Re: Implementing JAVA interfaces in FORTRAN 20xx
- From: fj
- Re: Implementing JAVA interfaces in FORTRAN 20xx
- From: e p chandler
- Re: Implementing JAVA interfaces in FORTRAN 20xx
- From: glen herrmannsfeldt
- Re: Implementing JAVA interfaces in FORTRAN 20xx
- Prev by Date: Re: J3 Responses to Public Comments
- Next by Date: Re: busting sp datatypes
- Previous by thread: Re: Implementing JAVA interfaces in FORTRAN 20xx
- Next by thread: Re: Implementing JAVA interfaces in FORTRAN 20xx
- Index(es):
Relevant Pages
|