Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DisplayMessage procedure in GAME.PAS uses Time instead of time #5

Closed
TigerLeep opened this issue Jan 24, 2022 · 1 comment
Closed

Comments

@TigerLeep
Copy link

I've been pouring over this source pretty intently (working on a C# port/recreation), and I noticed in the DisplayMessage procedure in GAME.PAS, it receives a variable named time, but uses Time in the body of the procedure. Pascal has a Time function, which threw me for a loop at first. I'm assuming that, since Pascal is not case-sensitive, the Time in the body of DisplayMessage actually refers to the time parameter passed to it, and not the Time function from Pascal. I'm guessing that the same-named variable "overrides" or "hides" the Pascal Time function.

Is the use of Time instead of time in the body of the DisplayMessage procedure a mistake?

@asiekierka
Copy link
Owner

Pascal is not case-sensitive. This allowed the typo to persist; it was a mistake and has now been fixed and made less confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants