This PR adds new variants of `Array.getInternal` and `Array.get!Internal` that return their argument borrowed, i.e. without a reference count increment. These are intended for use by the compiler in cases where it can determine that the array will continue to hold a valid reference to the element for the returned value's lifetime. In the future, this will likely be replaced by a return value borrow annotation, in which case the special variant of the functions could be removed, with the compiler inserting an extra `inc` in the non-borrow cases. |
||
|---|---|---|
| .. | ||
| lean.h | ||
| lean_gmp.h | ||
| lean_libuv.h | ||