I saw the getters-and-setters page mentioning the getter and property macros, but I could not find the definitions of these macros. Nor could I find a list of all the available macros. Could someone help me out please?
These macros are linked directly from that page:
For more information on getter and setter macros, see the standard library documentation for Object#getter, Object#setter, and Object#property.
1 Like
Something relevant is in crystal/src/object.cr
(implementations) and crystal/src/compiler/crystal/macros.cr
(documentation). Side note, macros.cr
does not document property
.
1 Like