Skip to content

Commit

Permalink
Update details about record definitions in the shell
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Feb 22, 2024
1 parent c35413a commit d512b17
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions system/doc/reference_manual/ref_man_records.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ limitations under the License.

A record is a data structure for storing a fixed number of elements. It has
named fields and is similar to a struct in C. Record expressions are translated
to tuple expressions during compilation. Therefore, record expressions are not
understood by the shell unless special actions are taken. For details, see the
`m:shell` manual page in STDLIB.
to tuple expressions during compilation.

More examples are provided in
[Programming Examples](`e:system:prog_ex_records.md`).
Expand Down Expand Up @@ -51,6 +49,12 @@ record.
If a record is used in several modules, it is recommended that the record
definition is placed in an include file.

> #### Change {: .info }
>
> Starting from Erlang/OTP 26, records can be defined in the Erlang shell
> using the syntax described in this section. In earlier releases, it was
> necessary to use the `m:shell` built-in function `rd/2`.
## Creating Records

The following expression creates a new `Name` record where the value of each
Expand Down

0 comments on commit d512b17

Please sign in to comment.