Quote: "I believe that the AppGameKit should be more clever and should distinguish the declarations of constants from the definitions of types even when they have the same names"
That would defeat the purpose of constants (for many languages, not just AGK). The important point about Ortu's advice is that constants in AppGameKit are a
compiler directive, not executable entities. The constants are replaced with literals, which make the run-time execution faster.
For example it is valid to write the following, which would not work if you change the rules around constants:
#constant ShowMyMouse SetRawMouseVisible(1)
#constant HideMyMouse SetRawMouseVisible(0)
ShowMyMouse
HideMyMouse
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt