easyenum ~master

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));
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

  • 88 downloads total

Score:
0.8
Short URL:
easyenum.dub.pm