-
Notifications
You must be signed in to change notification settings - Fork 10
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 versions as well via a compile-time define.
- Loading branch information
1 parent
bf8a958
commit 05e33fa
Showing
2 changed files
with
89 additions
and
17 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