Re: [fpc-pascal] New/Dispose vs GetMem/FreeMem

2009-10-16 Thread Marco van de Voort
In our previous episode, Alain Michaud said: > Are they based on the C library "maloc" or entirely genuine FPC code? FPC code, but you can change to "malloc", by using unit cmem (only on *nix) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] New/Dispose vs GetMem/FreeMem

2009-10-16 Thread Alain Michaud
Are they based on the C library "maloc" or entirely genuine FPC code? Alain Michaud Florian Klaempfl wrote: Graeme Geldenhuys schrieb: Hi, Which of these should I use in new projects? I read somewhere that GetMem/FreeMem is actually compatibility methods from Turbo Pascal days, yet I have se

Re: [fpc-pascal] New/Dispose vs GetMem/FreeMem

2009-10-15 Thread Florian Klaempfl
Graeme Geldenhuys schrieb: > Hi, > > Which of these should I use in new projects? I read somewhere that > GetMem/FreeMem is actually compatibility methods from Turbo Pascal > days, yet I have seen lots of new code that uses it, so I guess it's > still ok to use? GetMem/FreeMem are lower level tha

[fpc-pascal] New/Dispose vs GetMem/FreeMem

2009-10-15 Thread Graeme Geldenhuys
Hi, Which of these should I use in new projects? I read somewhere that GetMem/FreeMem is actually compatibility methods from Turbo Pascal days, yet I have seen lots of new code that uses it, so I guess it's still ok to use? I have various complex structured types and pointers to those types. Will