Skip to content

Commit

Permalink
Merge pull request #10680 from narimiran/fix-10561
Browse files Browse the repository at this point in the history
allow string insert in nimscript, fixes #10561
  • Loading branch information
LemonBoy committed Feb 15, 2019
2 parents b3ffbac + 1eaa18f commit bb9fe20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb9fe20

Please sign in to comment.