[fpc-pascal] Another Delphi mode question :) -- classes as parameter
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Wed Jul 12 17:10:08 CEST 2006
On 7/12/06, Alexandre Leclerc <alexandre.leclerc at gmail.com> wrote:
> In Delphi a class is always treated as a 'var' when passed in a
> function since a class is a pointer to actual data;
No, not really. It is always passed as a pointer, but here you want to
change the pointer and not the contents of the class. So when you put
a class as var you are passing a pointer to the pointer.
--
Felipe Monteiro de Carvalho
More information about the fpc-pascal
mailing list