[fpc-pascal] Another Delphi mode question :) -- classes as parameter
alexandre.leclerc at gmail.com
Wed Jul 12 17:22:57 CEST 2006
2006/7/12, Felipe Monteiro de Carvalho <felipemonteiro.carvalho at gmail.com>:
> 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.
Yes, it is really an error from myself. Thanks.
More information about the fpc-pascal