comparison runtime/doc/builtin.txt @ 34709:a1d0ef54a24b v9.1.0233

patch 9.1.0233: Vim9: string() output of enum is problematic Commit: https://github.com/vim/vim/commit/3cf121ed31f7a022e2ae6585391434d9c88e9792 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sun Mar 31 18:45:35 2024 +0200 patch 9.1.0233: Vim9: string() output of enum is problematic Problem: Vim9: string() output of enum is problematic Solution: Make string() output for an enum consistent with that of a regular object (Yegappan Lakshmanan). closes: #14343 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 31 Mar 2024 19:00:02 +0200
parents 009989ec3ff6
children 5914f369ff5b
comparison
equal deleted inserted replaced
34708:4dfddd4e4286 34709:a1d0ef54a24b
9597 List [item, item] 9597 List [item, item]
9598 Dictionary {key: value, key: value} 9598 Dictionary {key: value, key: value}
9599 Class class SomeName 9599 Class class SomeName
9600 Object object of SomeName {lnum: 1, col: 3} 9600 Object object of SomeName {lnum: 1, col: 3}
9601 Enum enum EnumName 9601 Enum enum EnumName
9602 EnumValue enum.value 9602 EnumValue enum name.value {name: str, ordinal: nr}
9603 9603
9604 When a |List| or |Dictionary| has a recursive reference it is 9604 When a |List| or |Dictionary| has a recursive reference it is
9605 replaced by "[...]" or "{...}". Using eval() on the result 9605 replaced by "[...]" or "{...}". Using eval() on the result
9606 will then fail. 9606 will then fail.
9607 9607