Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: add support for enums (and/or static variables/constants) #1

Open
NothanUmber opened this issue Jun 23, 2014 · 1 comment

Comments

@NothanUmber
Copy link

e.g. in place to constructor
myObj = MyClass(MyClass.Options.option1);
or in place via setter
myObj2 = MyClass() [choice=MyClass.Options.option1];

or via variable

chosenOption = MyClass.Options.option1;
myObj1 = MyClass(chosenOption);
myObj2 = MyClass() [choice=chosenOption];

@numenor
Copy link
Contributor

numenor commented Feb 26, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants