diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2018-10-11 21:26:44 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2018-10-16 18:31:39 (GMT) |
commit | 121a036f73665a18ccadeaf50b00cc623d8ed9df (patch) | |
tree | f361e2403c53546425781713b7bdeb57e5ba9389 /Help | |
parent | acfe53c58817c662b935fbe0f0443de298371731 (diff) | |
download | CMake-121a036f73665a18ccadeaf50b00cc623d8ed9df.zip CMake-121a036f73665a18ccadeaf50b00cc623d8ed9df.tar.gz CMake-121a036f73665a18ccadeaf50b00cc623d8ed9df.tar.bz2 |
cmListCommand: handle empty lists for list(REMOVE_AT)
Treat an empty list as a list with no valid bounds and return an error
message indicating that any given indices are out-of-bounds.
Diffstat (limited to 'Help')
-rw-r--r-- | Help/release/dev/better-empty-list-behavior.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Help/release/dev/better-empty-list-behavior.rst b/Help/release/dev/better-empty-list-behavior.rst index 12a131f..cd864f4 100644 --- a/Help/release/dev/better-empty-list-behavior.rst +++ b/Help/release/dev/better-empty-list-behavior.rst @@ -4,3 +4,6 @@ better-empty-list-behavior * The :command:`list` operations ``REMOVE_ITEM``, ``REMOVE_DUPLICATES``, ``SORT``, ``REVERSE``, and ``FILTER`` all now accept a non-existent variable as the list since these operations on empty lists is also the empty list. + +* The :command:`list` operation ``REMOVE_AT`` now indicates that the given + indices are invalid for a non-existent variable or empty list. |