Constexpre value being ignored

Lecture 14 - Magic Numbers and Constants uses the following line of code

constexpr int WORD_LENGTH = 5;

In latter lectures, Ben (as the Player) enters the word Donkey Kong, after changing WORD_LENGTH = 9, and then goes on to use getline()

However, I did NOT change the value of WORD_LENGTH (5) and yet the program still played OK when I entered
Donkey Kong. (10 letters in total, not counting the space between the 2 words)

Shouldn’t the program refuse to except any more input after 5 letters have been entered?
Isn’t this the reason for having this Constant Expression (variable) in the first place?
To limit what the User/Player can enter ?

Privacy & Terms