Waldek Hebisch wrote:
Adriaan van Os wrote:
Waldek Hebisch wrote:
Is it just a single routine ("ReadString") or does Mac Pascal have also "WriteString"?
MacPascal doesn't have WriteString. It does have StringOf, which is somewhat comparable.
(from the CodeWarrior Pascal Library Reference)
Prototype FUNCTION StringOf( v1 [; v2; ...; vn]) : STRING;
I have added "ReadString" to my version. Unfortunatly, "StringOf" requres some real effort so I can not do it quicky.
It might be doable similar to `FormatString' (in fact, reusing much of its implementation), which uses an RTS helper doing some heap stuff. Perhaps not the most elegant way, but it should not be a real problem, as calls cannot be nested (note: `FormatString (... FormatString (...) ...)' is no nested call in this sense, as the compiler copies the inner result to a temp variable).
Frank