easyenum 1.0.0

Functions for easily handling long enum operations.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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));
Authors:
webfreak
Dependencies:
none
Versions:
1.0.0 2015-Nov-30
~master 2015-Nov-30
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 75 downloads total