On 13 Oct 01, at 18:00, CBFalconer wrote:
[...]
I am new here, but an old hand at Pascal and Pascal implementation.
Will somebody please explain why this 'const' extension exists at all? A non VAR parameter is always passed by value, so the original cannot be modified. Thus I see absolutely no purpose to it.
There is a point. 'const' parameters are a Borland extension that allows you to pass a parameter by reference, but in a read only format. It can help with stack overflows, performance, etc. GPC has had some issues with const parameters in the past, and I am sure that they are not all sorted out yet. This may be one of them.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) Author of: Chief's Installer Pro for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm Email: African_Chief@bigfoot.com