I can understand the explanation on a technical level...
If the parser stops nicely at the “ü” and the supposed variable ‘Hütte’ is only marked internally as “H,” then the error output has virtually no choice but to output “H.”
...but it may be confusing for inexperienced users if only the first letter is displayed.
And if you declare the variable correctly or omit EnableExplicit, you get error messages that don't point to the actual problem but mislead the user:
Code: Select all
If (Hütte = 1 And Wind = "High") Or (Rain = #True And Umbrella = 0)
; nothing
EndIf
Will result in:
Line 1: “)” expected!
Will result in:
Line 1: Syntax-Error
And here too (even if it sounds a bit nitpicky): What actually sounds like a correct error description could unsettle an inexperienced user if hi expect that “Syntax error” means hi have written a command incorrectly. In my opinion, if a variable name is used incorrectly, it should be pointed out that the name of the variable does not comply with the conventions.
E.g.: “The variable name ‘Hütte’ contains invalid characters.”
But as I said, I can understand the explanation on a technical level, and I don't know how complicated it would be to extract the variable name completely despite the use of incorrect letters or characters for the error message.