In which programming language can manual memory management be combined (free at the right time, work with pointers and so on) and automatic, with a sufficiently advanced garbage collector by generations?

In other words, we need two separate heaps for working with memory.

  • C ++ doesn't suit you for some reason? - anta999
  • Is there a generational garbage collector? - Merlin
  • c # / unsafe - pointers can be used. see msdn here - Stack

1 answer 1

Most likely you will need C ++ / CLI . This is Microsoft's hybrid of C ++ and the .NET platform.

In it, .NET objects are created with gcnew and managed by the garbage collector, and standard C ++ objects are created with new and deleted manually by delete .