OK, I've been thinking (always dangerous after 11 pm).
Class-level entities can be accessed via a double-colon.
No big mystery:
Happily, a class method can also be accessed via a dot:
But a constant can't:
File.SEPARATOR # syntax error
First, why is it this way?
Personally, I don't like the :: anyway, as it reminds me
By the way, for those who are wondering, this *is* possible:
File.SEPARATOR # "/"
Even though it looks almost like recursion. Hmm, that raises
the question of why/how this works.
And another ...