f90wrap icon indicating copy to clipboard operation
f90wrap copied to clipboard

Use type(c_ptr) instead of transfer() for opaque references to derived types

Open jameskermode opened this issue 8 years ago • 0 comments

Casting to type(c_ptr) is functionally equivalent to using ``transfer()` as we do currently, but the latter is more error prone so we should switch.

See notes here: http://www.fortran90.org/src/best-practices.html#v-using-type-c-ptr-pointer

jameskermode avatar Jul 28 '16 12:07 jameskermode