taskLiberty Eiffel - Tasks: task #12653, implement named TUPLE elements


You are not allowed to post comments on this tracker with your current authentication level.

task #12653: implement named TUPLE elements

Submitted by:  Cyril Adrian <cadrian>
Submitted on:  Fri 07 Jun 2013 07:48:12 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:  SmartEiffel Priority:  5 - Normal
Status:  None Percent Complete:  0%
Assigned to:  None Open/Closed:  Open
Fixed Release:  None Planned Release:  None
Effort:  0.00

Fri 07 Jun 2013 07:48:12 AM UTC, original submission:  


Allow named TUPLE elements as defined by ECMA chapter 7.12 Tuples and agents:

It is also possible in the tuple type declaration to label the components, as in TUPLE[x: A; y: B; z: C], making it simpler to access the elements, as in your_tuple.y, with the proper type, here B, rather than your_tuple.item(2) of type ANY by default.
This is not much more than what already is in Liberty with item_x and set_item_x, but with user defined names.

I think this is a nice feature, which does not violate the simple language principles of Eiffel.

We shall document this on the wiki.

I also think it would be good to have a wiki page for "EMCA - What Liberty does (not) (yet) implement".

What do you think?

I think we should NOT implement this for Adler and decide after the Adler release whether we want it in Bell. I could imagine a "virtual" milestone "later" for exactly this type of feature requests. Or should we just assign it to bell and keep the option to move it to a later release when working on bell? Or is "no milestone assigned" exactly this?

Cyril Adrian <cadrian>
Project Administrator


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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.7