- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm looking for a way to mirror the operation of C++'s '#pragma once' in FORTRAN.
I guess !DEC$ DEFINE is what I want, but is there a compiler option for this?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why do you need that? It's much less useful in Fortran than in C++ because Fortran does not have source file scope. I think it could happen only if you had adeep treeof INCLUDE statements (in which case it cries for redesign anyway ;-) ),
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yeah, the joys of updating / maintaining other peoples code ;o)
I just got around my problem by using PRIVATE in my MODULE - really I shouldn't have a mixed of MODULEs and COMMON blocks....

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