diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2022-10-07 22:26:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 22:26:53 +0200 |
commit | e83f27e6a0f52f167e8eb91cd8f60be62d6725c6 (patch) | |
tree | 5e23e0c54abe38038405992deea1c234030d49b1 /lib/pure/collections/tableimpl.nim | |
parent | a132f5502acbd53781802579d89d6ca5168e74cd (diff) | |
download | Nim-e83f27e6a0f52f167e8eb91cd8f60be62d6725c6.tar.gz |
out parameters: enforce that 'out' is only used as a parameter (#20510)
* out parameters: enforce that 'out' is only used as a parameter * make tables.nim use 'out' parameters * better backwards compat
Diffstat (limited to 'lib/pure/collections/tableimpl.nim')
-rw-r--r-- | lib/pure/collections/tableimpl.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/collections/tableimpl.nim b/lib/pure/collections/tableimpl.nim index 27c339177..81079a3d1 100644 --- a/lib/pure/collections/tableimpl.nim +++ b/lib/pure/collections/tableimpl.nim @@ -23,7 +23,7 @@ template rawInsertImpl() {.dirty.} = data[h].val = val data[h].hcode = hc -proc rawGetDeep[X, A](t: X, key: A, hc: var Hash): int {.inline.} = +proc rawGetDeep[X, A](t: X, key: A, hc: var Hash): int {.inline, outParamsAt: [3].} = rawGetDeepImpl() proc rawInsert[X, A, B](t: var X, data: var KeyValuePairSeq[A, B], |