Mercurial > projects > ddmd
comparison 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 |
comparison
equal
deleted
inserted
replaced
134:4251f96733f4 | 135:af1bebfd96a4 |
---|---|
21 STCcomdat = 0x8000, // should go into COMDAT record | 21 STCcomdat = 0x8000, // should go into COMDAT record |
22 STCvariadic = 0x10000, // variadic function argument | 22 STCvariadic = 0x10000, // variadic function argument |
23 STCctorinit = 0x20000, // can only be set inside constructor | 23 STCctorinit = 0x20000, // can only be set inside constructor |
24 STCtemplateparameter = 0x40000, // template parameter | 24 STCtemplateparameter = 0x40000, // template parameter |
25 STCscope = 0x80000, // template parameter | 25 STCscope = 0x80000, // template parameter |
26 STCinvariant = 0x100000, | |
27 STCimmutable = 0x100000, | 26 STCimmutable = 0x100000, |
28 STCref = 0x200000, | 27 STCref = 0x200000, |
29 STCinit = 0x400000, // has explicit initializer | 28 STCinit = 0x400000, // has explicit initializer |
30 STCmanifest = 0x800000, // manifest constant | 29 STCmanifest = 0x800000, // manifest constant |
31 STCnodtor = 0x1000000, // don't run destructor | 30 STCnodtor = 0x1000000, // don't run destructor |
34 STCtls = 0x8000000, // thread local | 33 STCtls = 0x8000000, // thread local |
35 STCalias = 0x10000000, // alias parameter | 34 STCalias = 0x10000000, // alias parameter |
36 STCshared = 0x20000000, // accessible from multiple threads | 35 STCshared = 0x20000000, // accessible from multiple threads |
37 STCgshared = 0x40000000, // accessible from multiple threads | 36 STCgshared = 0x40000000, // accessible from multiple threads |
38 // but not typed as "shared" | 37 // but not typed as "shared" |
39 STC_TYPECTOR = (STCconst | STCimmutable | STCshared), | 38 STCwild = 0x80000000, // for "wild" type constructor |
39 STC_TYPECTOR = (STCconst | STCimmutable | STCshared | STCwild), | |
40 } | 40 } |
41 | 41 |
42 import dmd.EnumUtils; | 42 import dmd.EnumUtils; |
43 mixin(BringToCurrentScope!(STC)); | 43 mixin(BringToCurrentScope!(STC)); |
44 | 44 |
45 enum STCproperty = 0x100000000; | 45 enum STCproperty = 0x100000000; |
46 enum STCsafe = 0x200000000; | 46 enum STCsafe = 0x200000000; |
47 enum STCtrusted = 0x400000000; | 47 enum STCtrusted = 0x400000000; |
48 enum STCsystem = 0x800000000; | 48 enum STCsystem = 0x800000000; |
49 enum STCctfe = 0x1000000000; // can be used in CTFE, even if it is static | |
49 | 50 |
50 alias ulong StorageClass; | 51 alias ulong StorageClass; |