Waldek Hebisch wrote:
Variable parameters (Pascal term) are quite different than varargs (C term). For compatibility with C GPC supports calling varargs functions. GPC does not support writing varargs functions (you can write a trivial one, but there is no way to get the parameters). Note that Writeln is _not_ a varargs function. Writeln is converted by the compiler into calls for separate arguments -- no user defined function can behave the same as Writeln.
Oh well, it's not as if it's absolutely essential. It's not a great hassle to have to break up the output into separate calls. Less than elegant, but not too bad. Then again I could call a C function that does it, so the I/O routines are written in C rather than Pascal. I'll try both and then think on it before putting anything in.
It would certainly be nice to have a Pascal-like language especially for systems programming. No thousand page specs that nobody understands or the compiler being tied down to any particular platform or making use of a runtime library that's a major job to port to a different system. Just a Pascal that's more like C, with the ability to use Pascal extensions whether that is object orientation or whatever. A nice middle ground between C and C++ (almost impossible for kernel level work).
Thanks again, JD