moveFront() and friends: Request for comment

Michel Fortin michel.fortin at michelf.com
Fri Aug 27 12:01:36 PDT 2010


On 2010-08-27 14:04:50 -0400, Andrei Alexandrescu 
<SeeWebsiteForEmail at erdani.org> said:

> Add to this the implementation annoyance of checking for aliasing in 
> _every_ single method of the type. RefCounted in phobos can help with 
> that, but not without a cost.

Also, to get reference counting right when the struct can be stored on 
the garbage-collected heap you must use atomic operations to manipulate 
the reference count. Atomic operations add some more overhead on 
multi-core and multi-processor systems.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list