|
1 | 1 | <!-- |
2 | | -%CopyrightBegin% |
3 | | -
|
4 | | -SPDX-License-Identifier: Apache-2.0 |
| 2 | +%% %CopyrightBegin% |
| 3 | +%% |
| 4 | +%% SPDX-License-Identifier: Apache-2.0 |
| 5 | +%% |
| 6 | +%% Copyright Ericsson AB 2024-2025. All Rights Reserved. |
| 7 | +%% |
| 8 | +%% Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | +%% you may not use this file except in compliance with the License. |
| 10 | +%% You may obtain a copy of the License at |
| 11 | +%% |
| 12 | +%% http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | +%% |
| 14 | +%% Unless required by applicable law or agreed to in writing, software |
| 15 | +%% distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | +%% See the License for the specific language governing permissions and |
| 18 | +%% limitations under the License. |
| 19 | +%% |
| 20 | +%% %CopyrightEnd% |
| 21 | +--> |
5 | 22 |
|
6 | | -Copyright Ericsson AB 2025. All Rights Reserved. |
| 23 | +### Old aliases for type tests in guards |
7 | 24 |
|
8 | | -%CopyrightEnd% |
9 | | ---> |
| 25 | +The aliases `atom/1`, `tuple/1`, etc., for the respective type tests |
| 26 | +`is_atom/1`, `is_tuple/1`, etc., have been deprecated since before OTP R13 |
| 27 | +and have been scheduled for removal in OTP 30. Note that these aliases only |
| 28 | +could be used as guard tests at the top level. For example, in `{X, Y} when |
| 29 | +float(X), X =:= float(Y) -> ...` the first use of `float/1` is a type test |
| 30 | +alias, but the second use is the normal integer-to-float conversion BIF, |
| 31 | +because it occurs inside the `=:=`. The aliases were never recognized |
| 32 | +outside guards. |
10 | 33 |
|
11 | 34 | ### Distribution Control Messages |
12 | 35 |
|
|
0 commit comments