You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I've been pouring over this source pretty intently (working on a C# port/recreation), and I noticed in the
DisplayMessage
procedure inGAME.PAS
, it receives a variable namedtime
, but usesTime
in the body of the procedure. Pascal has aTime
function, which threw me for a loop at first. I'm assuming that, since Pascal is not case-sensitive, theTime
in the body ofDisplayMessage
actually refers to thetime
parameter passed to it, and not theTime
function from Pascal. I'm guessing that the same-named variable "overrides" or "hides" the Pascal Time function.Is the use of
Time
instead oftime
in the body of theDisplayMessage
procedure a mistake?The text was updated successfully, but these errors were encountered: