Including same libraries two or more times
- Posted by ZNorQ Dec 09, 2014
- 1433 views
Hi,
Normally I split my code in several include-files, but this usually ends up in me having to re-include standard-euphoria (or other custom made files) include files when needed.
Example;
myOEMainProgram.exw
- Includes myOESubFileA.e -> which includes "std/sequences.e".
- Includes myOESubFileB.e -> which includes "std/sequences.e".
- Includes myOESubFileC.e -> which includes "std/sequences.e".
Here "std/sequences" is included three times; does this mean that all members (constants, enums, functions, etc) occupy memory three times, or are they included once, but are only visible to the files including them directly? Or something else?
Kenneth aka ZNorQ