Why same pointer type for GC and manual memory?

IGotD- nise at nise.com
Wed Nov 13 11:07:12 UTC 2019


I'm trying to find the rationale why GC pointers (should be names 
managed pointers) are using the exact same type as any other 
pointer.

Doesn't this limit the ability to change the default GC type?
Doesn't this confusion make GC pointers just as unsafe as raw 
pointers?
Has there been any prior discussion about introducing managed 
pointers in D?


More information about the Digitalmars-d-learn mailing list