"Fossies" - the Fresh Open Source Software Archive

Member "doc/general_info/deprecations.html" (17 Sep 2019, 11457 Bytes) of package /linux/misc/otp_doc_html_22.1.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.

General Information

User's Guide

Version 10.5

Chapters

1 Deprecations

1.1  Introduction

This document aim to list all deprecated functionality in Erlang/OTP. It was introduced as of OTP 22, and have not yet been updated with all old deprecations. Deprecations made in other parts of the documentation are of course still valid. For more information regarding the strategy regarding deprecations see the documentation of Support, Compatibility, Deprecations, and Removal.

1.2  OTP 22

VxWorks Support

Some parts of OTP has had limited VxWorks support, such as for example erl_interface. This support is now deprecated and has also been scheduled for removal.

Legacy parts of erl_interface

The old legacy erl_interface library (functions with prefix erl_) is deprecated as of OTP 22. These parts of erl_interface has been informally deprecated for a very long time. You typically want to replace the usage of the erl_interface library with the use of the ei library which also is part of the erl_interface application. The old legacy erl_interface library has also been scheduled for removal.

System Events

The format of "System Events" as defined in the man page for sys has been clarified and cleaned up. Due to this, code that relied on the internal badly documented previous (before this change) format of OTP's "System Events", needs to be changed.

In the wake of this the function sys:get_debug/3 that returns data with undocumented and internal format (and therefore is practically useless) has been deprecated, and a new function sys:get_log/1 has been added, that hopefully does what the deprecated function was intended for.

1.3  OTP 18

erlang:now()

New time functionality and a new time API was introduced. For more information see the Time and Time Correction chapter in the ERTS User's guide and specifically the Dos and Donts section on how to replace usage of erlang:now().