diff options
author | Araq <rumpf_a@web.de> | 2015-09-16 15:34:54 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-09-16 15:34:54 +0200 |
commit | 29a91669667344e3637dbff4fc2009c263af3e11 (patch) | |
tree | 4fed18f5de2a3b0682bcc3d981ba6b4e7297f926 /lib | |
parent | c9a2fa54c7055c16892e9664dd64d8fc68918c07 (diff) | |
download | Nim-29a91669667344e3637dbff4fc2009c263af3e11.tar.gz |
fixes the most pressing regressions introduced by the new handling of a[i] in the compiler
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim index 27c23e0bc..8f529b8c0 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3465,6 +3465,7 @@ proc procCall*(x: expr) {.magic: "ProcCall", compileTime.} = ## procCall someMethod(a, b) discard +proc `^`*[T](x: int; y: openArray[T]): int {.noSideEffect, magic: "Roof".} proc `^`*(x: int): int {.noSideEffect, magic: "Roof".} = ## builtin `roof`:idx: operator that can be used for convenient array access. ## ``a[^x]`` is rewritten to ``a[a.len-x]``. However currently the ``a`` |