Type/RecordType: Make table returned by GetRecordFieldsVal() ordered

Seems only reasonable to provide that guarantee as pointed out in #4674.
This commit is contained in:
Arne Welzel 2025-07-22 15:36:34 +02:00
parent db018253fe
commit 9f3a3b423f
9 changed files with 54 additions and 43 deletions

View file

@ -697,7 +697,10 @@ public:
/**
* Returns a "record_field_table" value for introspection purposes.
* @param rv an optional record value, if given the values of
* all fields will be provided in the returned table.
* all fields will be provided in the returned table. The table
* is initialized with the &ordered attribute such that iterating over
* the table will yield entries for fields in the same order as they
* are kept in the record type types list.
*/
TableValPtr GetRecordFieldsVal(const RecordVal* rv = nullptr) const;