Re[2]: [fpc-pascal] about dynamic array

2010-05-09 Thread José Mejuto
Hello FPC-Pascal, Sunday, May 9, 2010, 8:04:24 PM, you wrote: s> Sorry to have launched such an argument by starting a new s> thread "about dynamic array". My purpose, as a newcomer discovering s> the world of fpc, was just to get information I could not find s> myself to help me and progress in

Re: Re[2]: [fpc-pascal] about dynamic array

2010-05-08 Thread Vinzent Höfler
> c> TList wraps TFPList, which is based internally on an array. So access > c> is fast; insertion, deletion not. > > But it is faster than inserting elements in a dynamic array (unless > reference counted ones) because it usually moves less amount of data > (4/8 bytes per element). Implementing

Re[2]: [fpc-pascal] about dynamic array

2010-05-06 Thread José Mejuto
Hello FPC-Pascal, Thursday, May 6, 2010, 9:50:34 PM, you wrote: DC> The short answer is because you have not set p2 to nil as you did to p1. I do not want to be rude but, do you read all the message ? I was trying to be ironic, but seems that I was unable maybe due my very limited english, sorry

Re[2]: [fpc-pascal] about dynamic array

2010-05-06 Thread José Mejuto
Hello FPC-Pascal, Thursday, May 6, 2010, 8:58:33 PM, you wrote: >> faster in fact. If the user plans to use a record (which is my >> suspect) with TList he must "new" and "dispose" the elements and he >> will end up with a dyn array of pointers after all, which is a TList. FK> A dyn. array of rec

Re[2]: [fpc-pascal] about dynamic array

2010-05-06 Thread José Mejuto
Hello FPC-Pascal, Thursday, May 6, 2010, 4:58:41 PM, you wrote: >> c> TList wraps TFPList, which is based internally on an array. So access >> c> is fast; insertion, deletion not. >> >> But it is faster than inserting elements in a dynamic array (unless >> reference counted ones) because it usua

Re[2]: [fpc-pascal] about dynamic array

2010-05-06 Thread José Mejuto
Hello FPC-Pascal, Thursday, May 6, 2010, 3:53:59 PM, you wrote: c> TList wraps TFPList, which is based internally on an array. So access c> is fast; insertion, deletion not. But it is faster than inserting elements in a dynamic array (unless reference counted ones) because it usually moves less