Reference to D class instance with a C library

Leandro Motta Barros lmb at stackedboxes.org
Sat Jul 13 12:53:31 PDT 2013


Good. Thanks again!

LMB

On Sat, Jul 13, 2013 at 4:01 PM, Adam D. Ruppe
<destructionator at gmail.com> wrote:
> 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