216. Common block and module variables with bind(c) can be accessed from C.#
topic: Interoperability with C and C++
Note
This tip is a draft1.
An interoperable common block or module variable with the bind(c) attribute can be accessed from C. A constant should be PROTECTED in Fortran and extern const in C. A PARAMETER is not interoperable.
An interoperable common block or module variable with the bind(c) attribute can be accessed from C. A constant should be PROTECTED in Fortran and extern const in C. A PARAMETER is not interoperable.pic.twitter.com/oEVUQROAog
— FortranTip (@fortrantip) May 15, 2022
- 1
From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.