On 2024-01-07 20:47, Michael Van Canneyt via fpc-pascal wrote:
On Sun, 7 Jan 2024, Adriaan van Os via fpc-pascal wrote:
.
.
There is some special handling for 1. (ending with a dot) due to
Delphi/TP compatibility, they accept it.
.
.
kr5 = 1 . e + 2;
Sam
On Sun, 7 Jan 2024, Adriaan van Os via fpc-pascal wrote:
Quiz.
Which of below constant declarations are accepted by the compiler and what is
their value ?
const
ki1 = + 2;
ki2 = +2;
+x is a unary expression.
ki3
Quiz.
Which of below constant declarations are accepted by the compiler and what is
their value ?
const
ki1 = + 2;
ki2 = +2;
ki3 = 2+;
kr1 = 1.;
kr2