(j3.2006) (SC22WG5.4653) [ukfortran] AW: Vote on N1904
Van Snyder
Van.Snyder
Thu Mar 15 14:47:45 EDT 2012
On Wed, 2012-03-14 at 18:03 -0700, Malcolm Cohen wrote:
> In fact, because we want to pass TYPE(*) except for
> alloc/ptr/ass-shape/ass-rank to a BIND(C) routine as a plain address
> [because it's much too much work for the user to type "C_LOC(...)"!],
> and this will necessarily exclude the type info, it appears to be the
> only restriction that will actually work at all.
Since c_loc(...) seems to do everything that TYPE(*) is intended to do,
why do we have TYPE(*)? The only disadvantages are that the argument of
c_loc needs to be a variable with the TARGET or POINTER attribute.
More information about the J3
mailing list