Liberty Eiffel - Tasks: task #12674, Enums are often wrapped as integers
You are not allowed to post comments on this tracker with your current authentication level.
task #12674: Enums are often wrapped as integers
Submitter: | Cyril Adrian <cadrian> | ||
Submitted: | Fri 07 Jun 2013 09:37:35 AM UTC | ||
Should Start On: | Thu 06 Jun 2013 10:00:00 PM UTC | Should be Finished on: | Thu 06 Jun 2013 10:00:00 PM UTC |
Category: | Wrappers | Priority: | 5 - Normal |
Status: | None | Assigned to: | Tybor |
Percent Complete: | 0% | Open/Closed: | Open |
Fixed Release: | None | Planned Release: | None |
Effort: | 0.00 |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
Powered by Savane 3.13-f8d8.
Corresponding source code
https://github.com/LibertyEiffel/Liberty/issues/52
Many enums in the wrappers are wrapped as integers while a more correct way is to write expanded classes inserting the ENUM class.
While it not wrong to use a plain INTEGER it makes easier to break contracts, i.e. using wrong integer values; having expanded classes that inserts ENUM allows the same performance of a plain integer with the correctness of a strongly typed expanded type.