Description

Functions for easily handling long enum operations.

Package Information

Version1.0.0 (2015-Nov-30)
Repositoryhttps://github.com/WebFreak001/EasyEnum
Licensepublic domain
CopyrightCopyright © 2015, webfreak
Authorswebfreak
Registered byWebFreak
Dependenciesnone

Installation

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

dub.json
dub.sdl

Readme

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

Available versions

1.0.0 ~master