If you could make any changes to D, what would they look like?
nise at nise.com
Wed Oct 20 18:29:55 UTC 2021
On Wednesday, 20 October 2021 at 18:19:55 UTC, jmh530 wrote:
> My limited knowledge of Managed C++ is that it only allowed the
> fat pointers with the GC. Would it be possible to have it
> customizable so that for instance you could have T^ work with a
> garbage collector or switch it out for reference counting?
Yes, the key is to have a distinctive type for managed pointers.
When you have that you can implement that pointer as you want.
Nim has a distinctive type for managed memory and can change GC
type by recompiling.
More information about the Digitalmars-d