Frank D. Engel, Jr. wrote:
OTHERWISE should work, right?
Yep, it's part of EP.
the array[firstindex FOR length] subarray construct,
EP has `array [firstindex .. lastindex]'. I think only for strings, but GPC allows it for all arrays.
His original implementation made OTHERWISE a reserved word, which I avoided in PascalP at the cost of context sensitivity.
GPC tries to as well, but in the case of `otherwise' it turns it on for the whole `case' block currently, i.e. an identifier `Otherwise' could not be used in any case branch. Changing that might be possible, but with quite some extra effort (more read-ahead etc.). I wonder if that's really useful (same for other "conditional keywords").
Any added standard procedures would be fairly system specific, although somebody mentioned 'overprint'. This simply flushes a line with a terminal <cr>, rather than a <crlf> combination (as from writeln), so that a following line overprints. 'prompt' is in the same category, except that no line termination characters are used, and is analagous to the C fflush() function.
Someone being far too creative could try to implement those procs as a UNIT for compatibility.
Or a module, of course. :-)
Except for the implicit use of `Output', IIUIC.
GPC has `Flush' (which is currently mostly a dummy, since the RTS does not buffer output, and when it will, it will probably at least flush all terminal output automatically before any input) ...
CBFalconer wrote:
BTW, please DO NOT top-post. I corrected this one.
Me too. :-)
Frank