Mercurial > projects > ddmd
view 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 |
line wrap: on
line source
module dmd.STC; enum STC { STCundefined = 0, STCstatic = 1, STCextern = 2, STCconst = 4, STCfinal = 8, STCabstract = 0x10, STCparameter = 0x20, STCfield = 0x40, STCoverride = 0x80, STCauto = 0x100, STCsynchronized = 0x200, STCdeprecated = 0x400, STCin = 0x800, // in parameter STCout = 0x1000, // out parameter STClazy = 0x2000, // lazy parameter STCforeach = 0x4000, // variable for foreach loop STCcomdat = 0x8000, // should go into COMDAT record STCvariadic = 0x10000, // variadic function argument STCctorinit = 0x20000, // can only be set inside constructor STCtemplateparameter = 0x40000, // template parameter STCscope = 0x80000, // template parameter STCimmutable = 0x100000, STCref = 0x200000, STCinit = 0x400000, // has explicit initializer STCmanifest = 0x800000, // manifest constant STCnodtor = 0x1000000, // don't run destructor STCnothrow = 0x2000000, // never throws exceptions STCpure = 0x4000000, // pure function STCtls = 0x8000000, // thread local STCalias = 0x10000000, // alias parameter STCshared = 0x20000000, // accessible from multiple threads STCgshared = 0x40000000, // accessible from multiple threads // but not typed as "shared" STCwild = 0x80000000, // for "wild" type constructor STC_TYPECTOR = (STCconst | STCimmutable | STCshared | STCwild), } import dmd.EnumUtils; mixin(BringToCurrentScope!(STC)); enum STCproperty = 0x100000000; enum STCsafe = 0x200000000; enum STCtrusted = 0x400000000; enum STCsystem = 0x800000000; enum STCctfe = 0x1000000000; // can be used in CTFE, even if it is static alias ulong StorageClass;