Op 18-10-2024 om 10:41 schreef Karoly Balogh via fpc-pascal:
By contrast, Pascal is not designed with GC in mind.
You'd need to redesign the language.

If you do that, you can throw away all existing code if you introduce GC,
because the two concepts do not merge easily.

Embarcadero tried it in Delphi, and they failed. Not surprisingly,
they removed again all automatic memory management.
Maybe it was mentioned in the thread, I just glanced through it, but how
about ARC (Automatic Reference Counting), Objective C style?

Delphi tried and failed.  IMHO it was also messy with all the "weak" attributes.

I think it is better that people wanting GC go for the backends that implement GC.


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

Reply via email to