- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the VML section of the manual I am coming across the notation:
REAL, INTEND(IN)
Not coming from a Fortran background, could someone explain to me what INTENT(IN) means and how this might effect calling vml functions from vc++ using the fortran convention for both real and complex vectors ??
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fortran INTENT(IN) is analogous to C const. It expresses the programmer's intent not to modify that object while the declaration is in scope, and requests the compiler to complain if it can detect a violation of that intent. It would not necessarilyaffect calling from C++, although it documents the idea that the vml function must not modify those arguments. For example, if the vml function can be treated as expecting a reference, the INTENT would not change that.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page