Re: [fpc-pascal] pointer magic

2010-04-27 Thread Thierry Coq
... In addition, when starting to use Pascal, don't use pointers, and don't invent linked lists, it's been done so many times. Go look up the source code in contnrs.pp to understand lists and containers already available in FPC. Most programming can be done without untyped pointers. Best regar

Re: [fpc-pascal] pointer magic

2010-04-27 Thread cobines
2010/4/27 spir ☣ : > -1- untyped pointer allocation > In case of an untyped pointer, I read the compiler considers the target'size > is 1 byte. There certainly is an operation to allocate memory for the target > according to an existing piece of data. Something like >    data := something >    ne