system.locals is now a plugin for education

This commit is contained in:
Araq 2015-04-24 02:08:06 +02:00
commit 0c947f31ba
8 changed files with 62 additions and 36 deletions

View file

@ -3207,7 +3207,7 @@ when hostOS != "standalone":
if x == nil: x = y
else: x.add(y)
proc locals*(): RootObj {.magic: "Locals", noSideEffect.} =
proc locals*(): RootObj {.magic: "Plugin", noSideEffect.} =
## generates a tuple constructor expression listing all the local variables
## in the current scope. This is quite fast as it does not rely
## on any debug or runtime information. Note that in constrast to what