Ticket #122 (closed enhancement: fixed)
Support constants
Reported by: | Chuck | Owned by: | Chuck |
---|---|---|---|
Priority: | major | Milestone: | Cobra 0.9 |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | constants | Cc: |
Description
Support constant declarations like those found in C#.
ticket:100 is somewhat related in that it covers "readonly" declarations. However, note that readonly fields cannot be used when constructing attributes. C# reports "error: An attribute argument must be a constant expression, typeof expression or array creation expression"
Which makes implementing constants more urgent.
See also http://www.google.com/search?hl=en&q=C%23+constants
Attachments
Change History
Note: See
TracTickets for help on using
tickets.