Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 6 and Version 7 of StdLib2/ModuleLib

Show
Ignore:
Author:
JarrettBillingsley (IP: 67.171.66.50)
Timestamp:
06/14/09 02:40:59 (15 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StdLib2/ModuleLib

    v6 v7  
    6060 
    6161Compiles a module's source code into a function, which is returned, but does not call the function or import the module.  `source` is the full source code of the module.  `name` is the name to give the module, which would be something like "foo.bar.baz" for a normal module.  It defaults to "<compiled by modules.compile>". 
     62 
     63If you have the source for a module and want to import it, you can write something like `modules.initModule(modules.compile(source, name), name)`.