From abdbfd26bc7f91cb6fda8feb758ffd020fb58754 Mon Sep 17 00:00:00 2001 From: Nikolai Aleksandrovich Pavlov Date: Sat, 11 Feb 2017 21:47:02 +0300 Subject: eval: Add id() function and make printf("%p") return something useful (#6095) --- runtime/doc/vim_diff.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/doc/vim_diff.txt') diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index de93aab399..eeb5e85036 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -232,6 +232,12 @@ Additional differences: itself. - ShaDa file keeps search direction (|v:searchforward|), viminfo does not. +|printf()| returns something meaningful when used with `%p` argument: in Vim +it used to return useless address of the string (strings are copied to the +newly allocated memory all over the place) and fail on types which cannot be +coerced to strings. See |id()| for more details, currently it uses +`printf("%p", {expr})` internally. + ============================================================================== 5. Missing legacy features *nvim-features-missing* *if_lua* *if_perl* *if_mzscheme* *if_tcl* -- cgit