diff options
-rwxr-xr-x | compiler/importer.nim | 8 | ||||
-rwxr-xr-x | tests/compile/twalker.nim | 2 | ||||
-rwxr-xr-x | todo.txt | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/compiler/importer.nim b/compiler/importer.nim index b3821746c..11fc45601 100755 --- a/compiler/importer.nim +++ b/compiler/importer.nim @@ -29,9 +29,11 @@ proc getModuleName*(n: PNode): string = of nkSym: result = n.sym.name.s else: - localError(n.info, errGenerated, - "invalide module name: '$1'" % renderTree(n)) - result = "" + # hacky way to implement 'x / y /../ z': + result = renderTree(n, {renderNoComments}).replace(" ") + #localError(n.info, errGenerated, + # "invalide module name: '$1'" % renderTree(n)) + #result = "" proc checkModuleName*(n: PNode): string = # This returns the full canonical path for a given module import diff --git a/tests/compile/twalker.nim b/tests/compile/twalker.nim index 3fdd8769b..89e6c2b9d 100755 --- a/tests/compile/twalker.nim +++ b/tests/compile/twalker.nim @@ -1,7 +1,7 @@ # iterate over all files with a given filter: import - os, times + "../../lib/pure/os.nim", ../../ lib / pure / times proc main(filter: string) = for filename in walkFiles(filter): diff --git a/todo.txt b/todo.txt index 804f6e5f6..e6731582f 100755 --- a/todo.txt +++ b/todo.txt @@ -50,7 +50,7 @@ Concurrency provide a ``syncgc`` pragma to trigger compiler injection --> more general: an ``injectLoop`` pragma - 'writes: []' effect; track reads/writes for shared types -- use the effect system to for static deadlock prevention +- use the effect system for static deadlock prevention version 0.9.XX |