allow string insert in nimscript, fixes #10561
This commit is contained in:
parent
b3ffbac93c
commit
1eaa18fe84
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue