[fpc-pascal] about dynamic array -- PS

2010-05-06 Thread spir ☣
Hello, It seems the actual issue with static array is that the size is part the type. So that one cannot even use a pointer to refer to an array which size is supposed to change (since the pointer's type itself would be constrained by the size). Is this correct? If yes, how is it possible to

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

2010-05-06 Thread Henry Vermaak
2010/5/6 spir ☣ denis.s...@gmail.com: Hello, If yes, how is it possible to build a flexible array type (in which on can add/remove elements) on top of static array? It depends on what you want to do with the array. As Jonas said, you may want to look at linked lists if you need to

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

2010-05-06 Thread Matthias K.
2010/5/6 spir ☣ denis.s...@gmail.com: Hello, It seems the actual issue with static array is that the size is part the type. So that one cannot even use a pointer to refer to an array which size is supposed to change (since the pointer's type itself would be constrained by the size). Is