[fpc-pascal] Layout of class method

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Mar 12 19:56:44 CET 2008

On 12 Mar 2008, at 18:44, Felipe Monteiro de Carvalho wrote:

> Ummm ... I'd like to keep compiler and sintax changes to absolute
> minimal. Ideally zero like now =P and I'm very close of having a fully
> object-oriented interface to objective-c.

Aren't you going to have problems with memory leaks with these wrapper  
instances? Suppose you create an instance in Pascal code, then pass  
the (wrapped) Objective-C class instance to an Objective-C method  
which releases it -> how will the Pascal wrapper instance ever be  
released? (and if the programmer frees it himself, how can you avoid  
sending a release message to the already released instance?)


More information about the fpc-pascal mailing list