https://www.freepascal.org/docs-html/ref/refsu5.html
That does not actually say that real is deprecated, just not absolutely defined. I use it from time to time where I need a float but have no concerns about precision. A habit going back to TP perhaps ? Are you saying I should change that to 'single' ?
Davo, have a careful look at the attached screenshot. I am hovering over the 'y' variable.
I also ran this just for kicks:
aruna@debian:~/lazarus3/lazarus$ find -type f -exec grep -i 'deprecated since' {} +
./tools/gir2pascal/girpascalwritertypes.pas: FTestPascalBody.Add(' //g_type_init();'); // deprecated since GLib 2.36
./components/opengl/glcocoanscontext.pas: //Add(kCGLPFAWindow); deprecated since 10.9
./lcl/interfaces/gtk3/gtk3widgets.pas: // this is deprecated since 3.8 .add() should be used
./lcl/interfaces/gtk2/gtk2proc.inc: // Deprecated since 2.10.
So some things are actually documented in the source as being deprecated I just have to refine and fine-tune my search filter.
I was also wondering why the link @Thaddy sent does not 'specifically' state anywhere real is now deprecated. But this is not a biggie I just found it confusing. Maybe we should have a page in the wiki where it specifically says what is deprecated and why and when and what has now replaced it? How difficult can that be to do? And the link @Thaddy sent says
'The Real native type is processor dependent, but it is either a Single or a Double.'
I like what Aruna is doing here, as a Delphi (1 and 2) user many, many years ago, I found its Help system very useful, little code snippets scattered every where. We have discussed a snippit repository in the wiki but I find, to my surprise, I don't use it. The official documentation (that Thaddy believes in with such fervor) is hard work. Maybe Aruna is on to something here ?
I have no idea if any of you ever used something known as the Norton Guides. This was our go-to and Clipper resource that was a god-send that literally saved us many hours of searching for information that was closely and jealously guarded by those who knew from experience or had the $:$$ to go purchase the books which we did not. So the point is Norton Guides had a description of the command and how to use it and more importantly a code snippet you could copy and paste into your editor and compile and run and test and learn from and extend. I am trying to do something similar for my own journey of learning with Lazarus IDE and Free Pascal and if folks find it useful I will gladly share.
Davo if you have any *remote* work please send it my way times are starting to get a bit rough up here in the great white north. And thank you for the kind words and support always.