Reference to D class instance with a C library

Adam D. Ruppe destructionator at gmail.com
Sat Jul 13 12:01:30 PDT 2013


On Saturday, 13 July 2013 at 18:54:18 UTC, Leandro Motta Barros 
wrote:
> If some future version of D implements a garbage collector 
> capable of moving objects around the heap, I could get in 
> trouble, right?

Maybe, but I don't think D would do that because a lot of D code 
uses C libraries. At the least, I'm sure it would offer a 
function to pin the object so the gc doesn't move it.


More information about the Digitalmars-d-learn mailing list