fixed some closure related bugs

This commit is contained in:
Araq 2013-01-22 00:29:54 +01:00
commit 0d978c4a9a
9 changed files with 226 additions and 24 deletions

View file

@ -312,7 +312,9 @@ proc MainCommand =
# no need to write rod files and would slow down things:
#registerPass(rodwrite.rodwritePass())
discard CompileModule(options.libpath / "system", {sfSystemModule})
service.serve(proc () =
# I'm lazy and misused this piece of code as a testcase so don't remove
# the invocation with a named parameter:
service.serve(action = proc () =
let projectFile = mainCommandArg()
discard CompileModule(projectFile, {sfMainModule})
)