logo       

[jira] Created: (BOO-485) Allow using constants / other enum values as valu: msg#00055

lang.boo.devel

Subject: [jira] Created: (BOO-485) Allow using constants / other enum values as values for enum members

Allow using constants / other enum values as values for enum members
--------------------------------------------------------------------

Key: BOO-485
URL: http://jira.codehaus.org/browse/BOO-485
Project: Boo
Type: Improvement
Versions: 0.6
Environment: Boo 1894 on Windows
Reporter: Daniel Grunwald
Priority: Minor


Currently, the parser accepts only integer literals as enum values. Boo should
be able to use any constant integer expression like C#:

import System

enum Test:
A = 1
B = TWO
C = 4
D = A
ALL = A | B | C

final TWO = 2

print Test.ALL


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise