On 2010-08-27 14:04:50 -0400, Andrei Alexandrescu <[email protected]> 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
[email protected]
http://michelf.com/

Reply via email to