[fpc-pascal] for..in loops?

Florian Klaempfl florian at freepascal.org
Sun Nov 20 14:09:31 CET 2005


Marco van de Voort wrote:

>>Lukas Gebauer wrote:
> 
> 
>>>Look to next Pascal language enhancements 
>>>in Delphi-2006... (like operator overloads or class variables...)
>>>we already have them in free pascal for a couple of years iirc and I've
>>>never used them.
> 
> 
> That's because they are quite limited if you have dynamic, non garbage collected
> objects.

Why? Use them with interfaces if you need garbage collection and it 
works perfectly.

> 
> For .NET that is no problem, since the objects are GCed, and for C++ they are static.
> 
> But for native Delphi, there is no good solution to do OO without a thick
> helper layer.
> 
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> 




More information about the fpc-pascal mailing list