Russell Whitaker wrote:
On Wed, 19 Dec 2001, Maurice Lombardi wrote:
Russell Whitaker wrote:
type ptrline = ^Line; Line = string ( );
just replace this by
type ptrline = ^string;
You do not need cap, and a faulty construct, even if the compiler misses an error.
Just now tried it. Seems strange, but it works.
What's so strange about it. It's kind of like arrays. You use `ArrayVar[IndexValue]' to refer to a single element and just `ArrayVar' to refer to the whole array. Similarly, `String (Cap)' is a string of given capacity and just `String' is a string of arbitrary capacity (only valid in pointers and var parameters). Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html