This is in Gambas 3 but my question is more about what could happen at the OS level.
The oddity is that I have 2 consecutive lines of code (nothing between the 2 lines, not even a comment), line number 1 is
and the following line is
"variable" being exactly the same. Obviously the first line prints the variable on the screen while the second line saves the same variable to a disk file but the results are different. Before the code is executed the same text (variable) is converted to lowercase (lower() which works correctly).
Code:
variable = lower(old_variable)
While the first line of code displays the converted (lower() line of text (variable), the second line of code saves the original line of text (the line before lower() = old_variable) and I am baffled by this result, trying various possible combinations give the same result.
It seems that the Gambas interpreter has a reference to a particular area of memory for the display to the screen and a reference to another area of memory for saving the same variable content to disk.
Could this just be due to a faulty design in the interpreter? Or could there be another explanation?
Thank you for your help