Re: [fpc-pascal] Quiz

2024-01-07 Thread Tomas Hajny via fpc-pascal
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

Re: [fpc-pascal] Quiz

2024-01-07 Thread Michael Van Canneyt via fpc-pascal
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