On 11 Oct 2001, at 12:47, CBFalconer wrote:
I don't know just what a str10 or a string is (apart from an extension), but this is not one, this is a character. The question is why didn't the compiler refuse this faulty procedure call?
I don't have the EP reference handy, but the "strings" section of the GPC manual at:
http://agnes.dida.physik.uni-essen.de/~gnu-pascal/gpc_142.html#SEC142
says that, "...'String' and 'Char' are assignment compatible." As far as I can recall, that's true in the EP standard as well, i.e., a char is treated as a string of length one for purposes of assignment to a string variable.
-- Dave