taskLiberty 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

Submitted by:  Cyril Adrian <cadrian>
Submitted on:  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 Percent Complete:  0%
Assigned to:  Tybor Open/Closed:  Open
Fixed Release:  None Planned Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Fri 07 Jun 2013 09:37:35 AM UTC, original submission:  

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.

Cyril Adrian <cadrian>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cadrian (Submitted the item)
  •  

    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.

    Only logged-in users can vote.

     

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.9