diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-09 08:25:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 08:25:08 -0400 |
commit | 8a1a256b44f7fe9f0d878d4d28d7f41f8157c4ea (patch) | |
tree | 5dec7bec10f87f7dc71ddf1d3c7cce4fe8beeb9e /runtime/doc/eval.txt | |
parent | 82ac44d01f0e92546f43c804595c14a139af77bd (diff) | |
parent | b35daa986f06f00939ddcf225a5efc59c26c418b (diff) | |
download | rneovim-8a1a256b44f7fe9f0d878d4d28d7f41f8157c4ea.tar.gz rneovim-8a1a256b44f7fe9f0d878d4d28d7f41f8157c4ea.tar.bz2 rneovim-8a1a256b44f7fe9f0d878d4d28d7f41f8157c4ea.zip |
Merge pull request #14326 from janlazo/vim-8.2.0623
vim-patch:8.2.{623,1822,2738}
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 00b1be013a..c3736d9a3e 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -5563,13 +5563,14 @@ id({expr}) *id()* Returns a |String| which is a unique identifier of the container type (|List|, |Dict| and |Partial|). It is guaranteed that for the mentioned types `id(v1) ==# id(v2)` - returns true iff `type(v1) == type(v2) && v1 is v2` (note: - |v:_null_list| and |v:_null_dict| have the same `id()` with - different types because they are internally represented as - a NULL pointers). Currently `id()` returns a hexadecimal - representanion of the pointers to the containers (i.e. like - `0x994a40`), same as `printf("%p", {expr})`, but it is advised - against counting on exact format of return value. + returns true iff `type(v1) == type(v2) && v1 is v2`. + Note that |v:_null_string|, |v:_null_list|, and |v:_null_dict| + have the same `id()` with different types because they are + internally represented as a NULL pointers. `id()` returns a + hexadecimal representanion of the pointers to the containers + (i.e. like `0x994a40`), same as `printf("%p", {expr})`, + but it is advised against counting on the exact format of + return value. It is not guaranteed that `id(no_longer_existing_container)` will not be equal to some other `id()`: new containers may |