On 2010-08-27 14:04:50 -0400, Andrei Alexandrescu
<seewebsiteforem...@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.for...@michelf.com
http://michelf.com/