Re: [fpc-pascal] Pointer to temporary string

2012-03-11 Thread cobines
OK. Thanks, Jonas. I'll save a link to this message this time. -- cobines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Pointer to temporary string

2012-03-11 Thread Jonas Maebe
On 11 Mar 2012, at 15:46, cobines wrote: > Is storing and using pointers to temporary strings safe? No. > Like in the > following program. I think I remember reading on the mailing list that > it is not, but I cannot find it. How can I prove one way or the other? The only thing you can prove i

[fpc-pascal] Pointer to temporary string

2012-03-11 Thread cobines
Hello. Is storing and using pointers to temporary strings safe? Like in the following program. I think I remember reading on the mailing list that it is not, but I cannot find it. How can I prove one way or the other? I could not get the program to crash, even if I used 20 variables, it didn't sho