Mercurial > projects > ddmd
annotate dmd/STC.d @ 135:af1bebfd96a4 dmd2037
dmd 2.038
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 13 Sep 2010 22:19:42 +0100 |
parents | 206db751bd4c |
children | bc45b1c53019 |
rev | line source |
---|---|
0 | 1 module dmd.STC; |
2 | |
131
206db751bd4c
dmdfe 2.037 compiles now
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
130
diff
changeset
|
3 enum STC |
0 | 4 { |
5 STCundefined = 0, | |
6 STCstatic = 1, | |
7 STCextern = 2, | |
8 STCconst = 4, | |
9 STCfinal = 8, | |
10 STCabstract = 0x10, | |
11 STCparameter = 0x20, | |
12 STCfield = 0x40, | |
13 STCoverride = 0x80, | |
14 STCauto = 0x100, | |
15 STCsynchronized = 0x200, | |
16 STCdeprecated = 0x400, | |
17 STCin = 0x800, // in parameter | |
18 STCout = 0x1000, // out parameter | |
19 STClazy = 0x2000, // lazy parameter | |
20 STCforeach = 0x4000, // variable for foreach loop | |
21 STCcomdat = 0x8000, // should go into COMDAT record | |
22 STCvariadic = 0x10000, // variadic function argument | |
23 STCctorinit = 0x20000, // can only be set inside constructor | |
24 STCtemplateparameter = 0x40000, // template parameter | |
25 STCscope = 0x80000, // template parameter | |
26 STCimmutable = 0x100000, | |
27 STCref = 0x200000, | |
28 STCinit = 0x400000, // has explicit initializer | |
29 STCmanifest = 0x800000, // manifest constant | |
30 STCnodtor = 0x1000000, // don't run destructor | |
31 STCnothrow = 0x2000000, // never throws exceptions | |
32 STCpure = 0x4000000, // pure function | |
33 STCtls = 0x8000000, // thread local | |
34 STCalias = 0x10000000, // alias parameter | |
35 STCshared = 0x20000000, // accessible from multiple threads | |
36 STCgshared = 0x40000000, // accessible from multiple threads | |
37 // but not typed as "shared" | |
135 | 38 STCwild = 0x80000000, // for "wild" type constructor |
39 STC_TYPECTOR = (STCconst | STCimmutable | STCshared | STCwild), | |
0 | 40 } |
41 | |
42 import dmd.EnumUtils; | |
131
206db751bd4c
dmdfe 2.037 compiles now
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
130
diff
changeset
|
43 mixin(BringToCurrentScope!(STC)); |
206db751bd4c
dmdfe 2.037 compiles now
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
130
diff
changeset
|
44 |
206db751bd4c
dmdfe 2.037 compiles now
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
130
diff
changeset
|
45 enum STCproperty = 0x100000000; |
206db751bd4c
dmdfe 2.037 compiles now
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
130
diff
changeset
|
46 enum STCsafe = 0x200000000; |
206db751bd4c
dmdfe 2.037 compiles now
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
130
diff
changeset
|
47 enum STCtrusted = 0x400000000; |
206db751bd4c
dmdfe 2.037 compiles now
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
130
diff
changeset
|
48 enum STCsystem = 0x800000000; |
135 | 49 enum STCctfe = 0x1000000000; // can be used in CTFE, even if it is static |
131
206db751bd4c
dmdfe 2.037 compiles now
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
130
diff
changeset
|
50 |
206db751bd4c
dmdfe 2.037 compiles now
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
130
diff
changeset
|
51 alias ulong StorageClass; |