> On Mar 8, 2018, at 3:12 PM, Michael Van Canneyt <mich...@freepascal.org> 
> wrote:
> 
> You can still use objects.

I guess I can go back to objects and use pointers to objects when I want 
classes? I don’t know if objects even have all the same functionality of 
classes, and aren’t they for backwards compatibility anyways? That doesn’t 
sound like the right direction to be going honestly.

It’s funny but I think the old object model was more flexible because you could 
make pointers to objects (if I remember correctly) but you can’t go backwards 
from classes to stack allocation. Deliberate or an unfortunate oversight?

> 
>> 
>> Btw can you override the memory manager used for class constructors? If a 
>> class reused the same block of memory that would have a similar effect and 
>> useful for tight loops where you’re allocating/deallocating memory over and 
>> over again.
> 
> You can do this for particular classes by overriding NewInstance.

Can you elaborate please? Not sure how that looks.


Regards,
        Ryan Joseph

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

Reply via email to