Thread: Import a Module
View Single Post
Old Dec 29th, 2006, 6:47 AM   #6
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by titaniumdecoy View Post
Wouldn't the cache have to be searched either way?
As I understand it, if it's already imported, only the namespace must be searched for the module name. If it's imported in the middle of the function, first the module cache has to be searched (in order to import the module into the current namespace), and then the namespace.
Arevos is offline   Reply With Quote