The "no gc" crowd

Jacob Carlborg doob at me.com
Wed Oct 9 07:35:36 PDT 2013


On 2013-10-09 15:51, Sean Kelly wrote:

> Generally not, since even D's precise GC is partially conservative.  It's also way more expensive than any cast should be. For better or worse, I think being able to cast data to shared means that we can't have thread-local pools. Unless a new attribute were introduced like "local" that couldn't ever be cast to shared, and that sounds like a disaster.

Since casting breaks the type system to begin with and is an advanced 
feature. How about providing a separate function that moves the object? 
It will be up to the user to call the function.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list