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?)


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to