On Sunday, 12 January 2014 at 17:15:44 UTC, Benjamin Thaut wrote:
Am 12.01.2014 18:12, schrieb Brian Rogoff:

How would the moving GC deal with pointer arithmetic?

I don't see any problem with pointer arithmetic? Either the pointer is pointing to a gc managed memory block and will be patched accordingly, or it is not pointing to a gc managed memory block, and nothing will happen.

Obviously if you do unsafe things, you have to know what you are doing and might give additional information to the gc so it can propperly support unsafe stuff.

The garbage collection page of the D spec actually talks a lot
about what is safe and unsafe (even though D doesn't have a
moving collector).

http://dlang.org/garbage.html

Reply via email to