Andrei Alexandrescu wrote:
On 01/14/2010 03:55 PM, Leandro Lucarella wrote:
What is @disable supposed to be for?
The main idea is to allow creation of noncopyable types by marking this(this) as @disable.

Noncopyable types are pivotal for a number of idioms important in concurrency and elsewhere.


It's similar to the motivation for the "= delete" capability proposed for C++0x. Lawrence Crowl makes a good case for it:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2326.html#delete

Reply via email to