@disable
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Jan 14 10:28:42 PST 2010
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
More information about the Digitalmars-d
mailing list