summaryrefslogtreecommitdiff
path: root/docs/yaml/objects/cfg_data.yaml
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2024-04-05 08:55:20 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2024-04-14 19:40:02 +0300
commit9f02d0a3e5a5ffc82256391c244b1af38e41ef78 (patch)
treeabd84b53919405a6ea3de5494720e88df7ae23c1 /docs/yaml/objects/cfg_data.yaml
parent1dcffb635f3ba3dae63e6aa1b61d3cf56c9cc49b (diff)
downloadmeson-9f02d0a3e5a5ffc82256391c244b1af38e41ef78.tar.gz
Clarify mutable objects usage
Only Environment and ConfigurationData are mutable. However, only ConfigurationData becomes immutable after first use which is inconsistent. This deprecates modification after first use of Environment object and clarify documentation.
Diffstat (limited to 'docs/yaml/objects/cfg_data.yaml')
-rw-r--r--docs/yaml/objects/cfg_data.yaml12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/yaml/objects/cfg_data.yaml b/docs/yaml/objects/cfg_data.yaml
index 03abb1709..069cadbf6 100644
--- a/docs/yaml/objects/cfg_data.yaml
+++ b/docs/yaml/objects/cfg_data.yaml
@@ -1,10 +1,14 @@
name: cfg_data
long_name: Configuration data object
description: |
- This object encapsulates
- configuration values to be used for generating configuration files. A
- more in-depth description can be found in the [the configuration wiki
- page](Configuration.md).
+ This object encapsulates configuration values to be used for generating
+ configuration files. A more in-depth description can be found in the
+ [the configuration page](Configuration.md).
+
+ This object becomes immutable after first use. This means that
+ calling set() or merge_from() will cause an error if this object has
+ already been used in any function arguments. However, assignment creates a
+ mutable copy.
methods:
- name: set