It's been a while since I did any Pascal programming - 1996, I think. Sadly, there hasn't been any demand for it on the job market. Now, retired, I get back to my favorite programming language, and I make elementary mistakes.
My simple question is:
There are some standard functions in FreePascal, such as e.g. sin and cos. I am working with a class for complex numbers and want to define a sin and a cos function for this class. Since these functions are not defined within any unit (but in mathh.inc), the compiler protests because it cannot see the difference between standard sin/cos and my complex sin/cos functions (i.e. inside the implementation of the complex class, since complex numbers use standard sin/cos functions). If sin/cos etc. had been in a unit, I could prefix with the unit name.
My workaround has been to name my function sinus/cosine, but this makes the use of the class less elegant.
Can this be solved any other way?