Re: [fpc-pascal]char 0 in ansistrings

2003-12-02 Thread Jonas Maebe
On 2 dec 2003, at 08:48, Mark Emerson wrote: I'm afraid my question was unclear. Unfortunately, I asked two questions with opposite senses, and I don't know which one you answered. Please clarify which of my interpretations of your answer is what you intended: (1) It is ONLY absolutely safe

Re: [fpc-pascal]char 0 in ansistrings

2003-12-02 Thread Mark Emerson
Jonas, I'm afraid my question was unclear. Unfortunately, I asked two questions with opposite senses, and I don't know which one you answered. Please clarify which of my interpretations of your answer is what you intended: (1) It is ONLY absolutely safe to include chr(0)IF you typecast

Re: [fpc-pascal]char 0 in ansistrings

2003-12-02 Thread Jonas Maebe
On 2 dec 2003, at 07:59, Mark Emerson wrote: Is it *absolutely safe* to include chr(0) in an ansistring and have it get treated like any other character? Or is there some instance where it will cause different behavior than other chars? Only if you typecast your ansistring to a pchar. Jonas _

[fpc-pascal]char 0 in ansistrings

2003-12-02 Thread Mark Emerson
Is it *absolutely safe* to include chr(0) in an ansistring and have it get treated like any other character? Or is there some instance where it will cause different behavior than other chars? Mark ___ fpc-pascal maillist - [EMAIL PROTECTED] http://