diff options
author | metagn <metagngn@gmail.com> | 2023-12-22 10:49:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-22 08:49:51 +0100 |
commit | 4b1a84170786653f60313f7bdf56efa3928c2a3a (patch) | |
tree | db7898a3be349b1b42cc4cb566d5a8587c6d37b2 /lib/std/exitprocs.nim | |
parent | df3c95d8af7bfd1e61e6b06eec21f57781dff9d5 (diff) | |
download | Nim-4b1a84170786653f60313f7bdf56efa3928c2a3a.tar.gz |
add switch, warning, and `bind` support for new generic injection behavior (#23102)
refs #23091, especially post merge comments Unsure if `experimental` and `bind` are the perfect constructs to use but they seem to get the job done here. Symbol nodes do not get marked `nfOpenSym` if the `bind` statement is used for their symbol, and `nfOpenSym` nodes do not get replaced by new local symbols if the experimental switch is not enabled in the local context (meaning it also works with `push experimental`). However this incurs a warning as the fact that the node is marked `nfOpenSym` means we did not `bind` it, so we might want to do that or turn on the experimental switch if we didn't intend to bind it. The experimental switch name is arbitrary and could be changed. --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'lib/std/exitprocs.nim')
0 files changed, 0 insertions, 0 deletions