- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I'm writing on a bigger project, where I use an amount of modules, so sometimes I got problems to check the dependenciy.
Usually I include the required modules only in the functions of the module itself. So checking the dependencies, I have to go through all functions of the module.
However it would be nice if I just include all required modules in the head of the module(I'm currently programming).
I know, this is possible, but however makes the compiler any difference in it. So is there a difference if i include all required modules in the head of the module, or if I include the corresponding modules only in the subroutines, where they are required ?
Thanks for any comments
Martin
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is a better programming practice to USE only those modules you need. As for the compiler, the fewer modules it has to read during compilation, the faster it can compile.

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