- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve:
You mentioned a while back that the generated .mod files are to be used for error checking only, or something like that. It appears that they should not be used for required interfaces, such as between routines that pass pointers as pointers. Strangely, though, the generated .mod files seem to work for that purpose until some mysterious phenomenon apparently related to the DLL complexity occurs, whereupon some (but not all) of the calls begin to fail. Am I reading this right? When an interface is required, one cannot trust the generated .mod files?
Bruce
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The generated .mod file can be "trusted" in that it will, for now, make the program work (when it shouldn't). At some point in the future, the compiler will give a proper error instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If a called subroutine is a contained module procedure, is an explicit interface automatically defined by the USE statement in the calling routine? If not, can one stick the interface in the module? i.e.,
subroutine Caller
use PointerPassers_
call PointerPasser_1 (pntr)
return
end
module PointerPassers_
interface subroutine PointerPassers_1 (pntr)
...
end interface
contains
subroutine PointerPasser_1
...
end module PointerPassers_
Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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