Skip to content

Commit

Permalink
Document defstruct equal: and transparent: (#1096)
Browse files Browse the repository at this point in the history
Co-authored-by: vyzo <[email protected]>
  • Loading branch information
chiefnoah and vyzo authored Jan 5, 2024
1 parent b905fe8 commit c4d1607
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/reference/gerbil/prelude/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ Low level struct and class type definition facilities.
id: id ; type id
constructor: id ; constructor method id
final: bool ; #t for final types
equal: bool or list ; a list of fields to consider for equal? checks, #t for all fields
transparent: bool ; #t for equality checks and printability
(defstruct id (field) ...)
=> (begin
Expand Down

0 comments on commit c4d1607

Please sign in to comment.