I am using Lazarus 2.0.8/fpc3.0.4 on RaspberryPi4.
When working on Windows -> Linux porting of an old Delphi app I have noted that the Lazarus IDE behaves differently when I hover the mouse over a const item in the source editor. The consts are declared in the top of the implementation section to be global in the file.
1) The const is declared like this:
MKFILE= #$E5;When I hover the mouse I see:
"const MKFILE = #$E5"
2) The const is declared like this:
REMMEASON: char = #$D5;When I hover the mouse I see:
"const REMMEASON: char"
So in one case I see the value of the const and in the other case only the type...
Is there some Lazarus setting that will enable always showing the value?
Another question:
-----------------
Is there a difference between the two types of declarations? I think that the # specifier of the value also declares the const as a char in the first place, or not?
If there is no difference to the compiler I could remove the char type item for these consts and then be able when navigating the code to see what the const value actually is, right?
I really do not know why there is a difference there, the code was worked on from 2004 to 2012 in Delphi 7/2007, but we need to get away from Windows now so I am porting it to FPC/Lazarus...
