-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`lent` allows returning a (hidden) pointer to a member thus making Result slightly more efficient when working with types that are expensive to copy. `lent` is enabled by default only on recent versions as Nim is known to generate invalid code in earlier releases - how far back `lent` works reliably depends on where Result appears but versions as recent as 1.6.14 have been known to have issues. As such, `lent` support is conservatively enabled only for 2.0.8+ but can be enabled for earlier versoins as well via a compile-time define.
- Loading branch information
1 parent
410afe8
commit 03c5d14
Showing
2 changed files
with
98 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters