Use ^ instead of - in slices
This commit is contained in:
parent
2b80d75aa2
commit
64903e7050
10 changed files with 93 additions and 93 deletions
|
|
@ -27,7 +27,7 @@ proc refExpr(exprNode: NimNode): string {.compileTime.} =
|
|||
"expr" & $(exprNodes.len - 1)
|
||||
|
||||
proc derefExpr(exprRef: string): NimNode {.compileTime.} =
|
||||
exprNodes[parseInt(exprRef[4 .. -1])]
|
||||
exprNodes[parseInt(exprRef[4 .. ^1])]
|
||||
|
||||
#===============================================================================
|
||||
# Define a type that allows a callable expression to be mapped onto elements
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue