diff options
author | Hans Bolinder <hasse@erlang.org> | 2017-03-09 10:12:31 +0100 |
---|---|---|
committer | Hans Bolinder <hasse@erlang.org> | 2017-04-27 10:26:48 +0200 |
commit | 6edb6a45d8b2d2993f50176b3324d3fff97fe123 (patch) | |
tree | 258d6fe7fd2fde3a56920511e2130fb08ece7a50 /system/doc/efficiency_guide/processes.xml | |
parent | 70074be307908d8913e042dcf564487028c53f84 (diff) | |
download | otp-6edb6a45d8b2d2993f50176b3324d3fff97fe123.tar.gz otp-6edb6a45d8b2d2993f50176b3324d3fff97fe123.tar.bz2 otp-6edb6a45d8b2d2993f50176b3324d3fff97fe123.zip |
stdlib: Improve the Erlang shell's handling of references
As of Erlang/OTP 20.0, the type of ETS tables, ets:tid(), is a
reference(). A request was put forward that the Erlang shell should be
able to handle references in its input.
This commit introduces an extended parser in module lib. It can parse
pids, ports, references, and external funs under the condition that
they can be created in the running system. The parser is meant to be
used internally in Erlang/OTP. The alternative, to extend erl_scan and
erl_parse, was deemed inferior as it would require the abstract format
be able to represent pids, ports, references, and funs, which would be
confusing as they are not expressions as such, but data types.
Diffstat (limited to 'system/doc/efficiency_guide/processes.xml')
-rw-r--r-- | system/doc/efficiency_guide/processes.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/doc/efficiency_guide/processes.xml b/system/doc/efficiency_guide/processes.xml index afa4325d8e..3b64c863ff 100644 --- a/system/doc/efficiency_guide/processes.xml +++ b/system/doc/efficiency_guide/processes.xml @@ -4,7 +4,7 @@ <chapter> <header> <copyright> - <year>2001</year><year>2016</year> + <year>2001</year><year>2017</year> <holder>Ericsson AB. All Rights Reserved.</holder> </copyright> <legalnotice> @@ -222,7 +222,7 @@ kilo_byte(N, Acc) -> <pre> 4> <input>T = ets:new(tab, []).</input> -17 +#Ref<0.1662103692.2407923716.214181> 5> <input>ets:insert(T, {key,efficiency_guide:kilo_byte()}).</input> true 6> <input>erts_debug:size(element(2, hd(ets:lookup(T, key)))).</input> |