easyenum 1.0.0
Functions for easily handling long enum operations.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
easyenum
Easily handle long enum names for operations. Written in 20 lines (including unittests)
Usage
import easyenum;
enum WindowCreationButtonFlags
{
Minimize = 1,
Maximize = 2,
Close = 4
}
auto flags = w!(WindowCreationButtonFlags, q{Minimize | Close});
assert(flags == (WindowCreationButtonFlags.Minimize | WindowCreationButtonFlags.Close));
- 1.0.0 released 9 years ago
- WebFreak001/EasyEnum
- public domain
- Copyright © 2015, webfreak
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.0 2015-Nov-30 ~master 2015-Nov-30 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
88 downloads total
-
- Score:
- 0.8
- Short URL:
- easyenum.dub.pm