Re: [fpc-pascal] const pchar parameters?

2005-12-31 Thread Jonas Maebe
On 31 Dec 2005, at 19:09, L505 wrote: 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? It can be either of those. The compiler is free to choose what it does. All you know for sure is that

[fpc-pascal] const pchar parameters?

2005-12-31 Thread L505
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 poi

[fpc-pascal] XML DOM stuff

2005-12-31 Thread Tony Pelton
hi all, i've been toiling over the DOM implementation with the FCL for a few hours now. i had successfully used the XMLRead code to load a DOM from an XML file. i had successfully mutated said document and used XMLWrite to persist those changes to the DOM. i've now been beating my head against