41
41
% version of the language which will actually be specified by the next stable
42
42
% release of this document.
43
43
%
44
+ % Dec 2023
45
+ % - Allow `~/` on operands of type `double` in constant expressions, aligning
46
+ % the specification with already implemented behavior.
47
+ %
44
48
% Nov 2023
45
49
% - Specify that the dynamic error for calling a function in a deferred and
46
50
% not yet loaded library will occur before actual argument evaluation, not
@@ -8596,7 +8600,7 @@ \subsection{Constants}
8596
8600
if $T$ is a constant type expression,
8597
8601
and $e_1$, \ldots{} , $e_n$ are constant expressions.
8598
8602
It is further a constant expression
8599
- if the list literal evaluates to an object.
8603
+ if the set literal evaluates to an object.
8600
8604
8601
8605
\item
8602
8606
A constant map literal (\ref{maps}),
@@ -8684,7 +8688,7 @@ \subsection{Constants}
8684
8688
\lit{\&}, \lit{|}, respectively \lit{\^}
8685
8689
denotes an instance operator invocation.
8686
8690
8687
- \item An expression of one of the forms \code{$e_1$\,\gtilde/\,$e_2$},
8691
+ \item An expression of one of the forms
8688
8692
\code{$e_1$\,\gtgt\,$e_2$}, \code{$e_1$\,\gtgtgt\,$e_2$},
8689
8693
or \code{$e_1$\,\ltlt\,$e_2$} is potentially constant
8690
8694
if $e_1$ and $e_2$ are both potentially constant expressions.
@@ -8711,8 +8715,9 @@ \subsection{Constants}
8711
8715
such that \lit{-} denotes an instance operator invocation.
8712
8716
8713
8717
\item An expression of the form \code{$e_1$\,-\,$e_2$}, \code{$e_1$\,*\,$e_2$},
8714
- \code{$e_1$\,/\,$e_2$}, \code{$e_1$\,\%\,$e_2$}, \code{$e_1$\,<\,$e_2$},
8715
- \code{$e_1$\,<=\,$e_2$}, \code{$e_1$\,>\,$e_2$}, or \code{$e_1$\,>=\,$e_2$}
8718
+ \code{$e_1$\,/\,$e_2$},\code{$e_1$\,\gtilde/\,$e_2$}, \code{$e_1$\,\%\,$e_2$},
8719
+ \code{$e_1$\,<\,$e_2$}, \code{$e_1$\,<=\,$e_2$}, \code{$e_1$\,>\,$e_2$}, or
8720
+ \code{$e_1$\,>=\,$e_2$}
8716
8721
is potentially constant
8717
8722
if $e_1$ and $e_2$ are both potentially constant expressions.
8718
8723
It is further constant if both $e_1$ and $e_2$ are constant expressions that
0 commit comments