Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
0244-Update-details-about-record-definitions-in...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0244-Update-details-about-record-definitions-in-the-shell.patch of Package erlang
From d512b171ac99e3e8f24ed649c775e566e6f4fbb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Thu, 22 Feb 2024 12:28:57 +0100 Subject: [PATCH 2/2] Update details about record definitions in the shell --- system/doc/reference_manual/ref_man_records.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/system/doc/reference_manual/records.xml b/system/doc/reference_manual/records.xml index 72206d2f35..47ff2b6052 100644 --- a/system/doc/reference_manual/records.xml +++ b/system/doc/reference_manual/records.xml @@ -32,10 +32,7 @@ <p>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 - <seeerl marker="stdlib:shell">shell(3)</seeerl> - manual page in STDLIB.</p> + compilation.</p> <p>More examples are provided in <seeguide marker="system/programming_examples:records"> Programming Examples</seeguide>.</p> @@ -57,6 +54,10 @@ come before any usage of the record.</p> <p>If a record is used in several modules, it is recommended that the record definition is placed in an include file.</p> + <change><p>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`.</p> + </change> </section> <section> -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor