[fpc-pascal] const pchar parameters?

L505 fpc505 at z505.com
Sat Dec 31 19:09:21 CET 2005


When using pchars, what happens when one does this:

function test(const input: pchar): integer;

Is this a pointer to a pchar? Or is it just a pchar?

i.e. below is bad:
function test(var input: pchar): integer;


So what about a const pchar paramater... Is it a read only pchar, or a read only
pointer to a pchar?


--
L505




More information about the fpc-pascal mailing list