Mercurial > projects > dil
diff trunk/src/dil/Declarations.d @ 367:dda55fae37de
- ImportGraph.execute() can parse all modules depending on the imports of the root module.
- Added function findModule().
- Renamed option includes to import_paths.
- Fix in ctor of ModuleDeclaration: check for pname.length before removing last separator.
- Fixed scanning binary numbers.
- Added member modules and method getFQN() to class Module.
- Fix in parseIfStatement(): AttributeStatement mustn't have a null parameter.
- Parsing import_paths in GlobalSettings.load().
author | aziz |
---|---|
date | Fri, 31 Aug 2007 23:07:05 +0000 |
parents | dcbd3bf9bf74 |
children | ae4afb66768f |
line wrap: on
line diff
--- a/trunk/src/dil/Declarations.d Fri Aug 31 12:14:03 2007 +0000 +++ b/trunk/src/dil/Declarations.d Fri Aug 31 23:07:05 2007 +0000 @@ -87,7 +87,8 @@ foreach (pckg; packages) if (pckg) pname ~= pckg.identifier ~ separator; - pname = pname[0..$-1]; // Remove last separator + if (pname.length) + pname = pname[0..$-1]; // Remove last separator return pname; } }