@disable
Walter Bright
newshound1 at digitalmars.com
Thu Jan 14 13:04:38 PST 2010
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
More information about the Digitalmars-d
mailing list