[fpc-pascal] New/Dispose vs GetMem/FreeMem
    Graeme Geldenhuys 
    graemeg.lists at gmail.com
       
    Thu Oct 15 10:24:23 CEST 2009
    
    
  
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 New() and Dispose() automatically know what size to allocated and
deallocate, seeing that it doesn't have a Size parameter?
-- 
Regards,
  - Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
    
    
More information about the fpc-pascal
mailing list