diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2019-02-15 16:20:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-15 16:20:26 +0100 |
commit | bb9fe2046e6b1d2b3190f466d53b22f6785c8433 (patch) | |
tree | ea1995fb07718de6810c9cf9f3865d48a99afe55 | |
parent | b3ffbac93c1485ca9b7fd5f5d7ddd3fb9461d8e4 (diff) | |
parent | 1eaa18fe84a135d246baf9eb7125c2c540e27603 (diff) | |
download | Nim-bb9fe2046e6b1d2b3190f466d53b22f6785c8433.tar.gz |
Merge pull request #10680 from narimiran/fix-10561
allow string insert in nimscript, fixes #10561
-rw-r--r-- | lib/system.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim index af4214e9d..d92848d40 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3873,7 +3873,7 @@ when false: macro payload: typed {.gensym.} = blk payload() -when hasAlloc: +when hasAlloc or defined(nimscript): proc insert*(x: var string, item: string, i = 0.Natural) {.noSideEffect.} = ## inserts `item` into `x` at position `i`. var xl = x.len |