- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
One subroutine is named fourn
I got errors like error #6633 the type of the actual argument differs from the type of the dummy argument. [COEF]
COEF is the argument of subroutine fourn.
The change fourn to fourn8.
It just works.
How come?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If the compiler sees both the declaration of the subroutine and a call to it in the same source file (or if checking interfaces has been selected) it can check for matching subroutine argument types. By changing the name, you disabled this capability of the compiler. If by "It just works" you mean that the compilation completes without error messages, you are asking for trouble later (at link time or run time). Instead of trying to deceive the compiler, fix the problem.

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