August Karlstrom
2011-09-21 13:56:49 UTC
In the new 2011 revision of Oberon-07, character literals where removed
and instead single-character strings are now compatible with character
variables. Still, I find it hard to reason about expressions involving
the empty string like
ch = 0X (*has to be valid*)
ch = "" (*valid?*)
using the stated rules of the language (rather than intuition). How can
I conclude that the empty string is compatible with a character
variable? Where does it say that a character variable can be compared
with a single-character string or the empty string? Can somebody help me?
August
and instead single-character strings are now compatible with character
variables. Still, I find it hard to reason about expressions involving
the empty string like
ch = 0X (*has to be valid*)
ch = "" (*valid?*)
using the stated rules of the language (rather than intuition). How can
I conclude that the empty string is compatible with a character
variable? Where does it say that a character variable can be compared
with a single-character string or the empty string? Can somebody help me?
August
--
The competent programmer is fully aware of the limited size of his own
skull. He therefore approaches his task with full humility, and avoids
clever tricks like the plague. --Edsger Dijkstra
The competent programmer is fully aware of the limited size of his own
skull. He therefore approaches his task with full humility, and avoids
clever tricks like the plague. --Edsger Dijkstra