From 8913e82f4505cb542c06545696ef687a52cd080c Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 28 Jul 2015 02:54:07 +0200 Subject: removed macros.high as it never worked outside of macros.nim --- lib/core/macros.nim | 18 ++++++++---------- web/news.txt | 2 ++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 7d1c15610..c89fa354a 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -592,10 +592,8 @@ proc newNilLit*(): NimNode {.compileTime.} = ## New nil literal shortcut result = newNimNode(nnkNilLit) -proc high*(node: NimNode): int {.compileTime.} = len(node) - 1 - ## Return the highest index available for a node -proc last*(node: NimNode): NimNode {.compileTime.} = node[node.high] - ## Return the last item in nodes children. Same as `node[node.high()]` +proc last*(node: NimNode): NimNode {.compileTime.} = node[