lang enhance record field tags lazarus / 64-FPC development ---------------------------------------------------------------------- jksmithiii · 2022-07-31 17:53 https://www.golangprograms.com/use-field-tags-in-the-definition-of- struct-type-in-go-programming-language.html ---------------------------------------------------------------------- MarkMLl · 2022-07-31 18:21 In what useful way does that differ from what's already supported (LRM 4.4)? MarkMLl ---------------------------------------------------------------------- PascalDragon · 2022-08-01 11:18 Quote from: jksmithiii on July 31, 2022, 07:53:43 pmhttps://www.golangprograms.com/use-field-tags-in-the-definition-of- struct-type-in-go-programming-language.html Once extended RTTI is supported, the current attribute support (which only works for types) will be extended to fields as well: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i type  // assumes that there is a JSONAttribute type that descends from TCustomAttribute  TEmployee = record    [JSON('firstname')]    FirstName: String;    [JSON('lastname')]    LastName: String;    [JSON('city')]    City: String;  end; They can then be accessed using Attributes property of the corresponding types in unit Rtti. ---------------------------------------------------------------------- 440bx · 2022-08-01 17:39 I presume the second field is named "LastName" instead of FirstName (otherwise the compiler would rightfully complain about a duplicate identifier.) ---------------------------------------------------------------------- PascalDragon · 2022-08-02 05:38 Quote from: 440bx on August 01, 2022, 07:39:23 pmI presume the second field is named "LastName" instead of FirstName (otherwise the compiler would rightfully complain about a duplicate identifier.) Yes, obviously. Thank you for the correction (I fixed it now)