Pelle Månsson wrote:
On 01/14/2010 03:55 PM, Leandro Lucarella wrote:
What is @disable supposed to be for?
http://www.dsource.org/projects/dmd/changeset/336

Thanks.

#define STCdisable 0x2000000000LL // for functions that are not callable

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.


Andrei

Reply via email to