bugLiberty Eiffel - Bugs: bug #43266, self-initilizing attributes


bug #43266: self-initilizing attributes

Submitter:  Raphael Mack <ramack>
Submitted:  Sat 20 Sep 2014 10:30:41 PM UTC
Category:  SmartEiffel Severity:  2 - Minor
Priority:  * 5 - Normal Status:  None
Assigned to:  ramack Open/Closed:  Open
Release:  None Fixed Release:  None
Planned Release:  dennis
* Mandatory Fields

Add a New Comment (Rich Markup)

Mon 20 Oct 2014 09:28:17 AM UTC, comment #2: 

I think it needs a non-negligible work. Postpone to curtiss.

Cyril Adrian <cadrian>
Group administrator
Sat 20 Sep 2014 10:57:29 PM UTC, comment #1: 

it seems useful to add a new type of RUN_FEATURE for self-initializing attributes and to disallow normal attributes to have contracts.

Raphael Mack <ramack>
Group administrator
Sat 20 Sep 2014 10:30:41 PM UTC, original submission:  

Using the new 'attribute' keyword to define instance variables allows the definition of a pre- and postcondition. These are only relevant for self-initialization, which is currently not implemented.
Also it seems, that the postcondition is currently not check correctly.

Also necessary to test: rescure clause, local variables, contracts and body only executed for first access.

BTW: for self-initialization with a constant this can be optimized to do the init at the end of all creation procedures.

Raphael Mack <ramack>
Group administrator


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

Attach Files:

Attached Files
file #32316:  attributes.e added by ramack (676B - text/x-eiffel - attribute axample for this feature (attached here, as removed from git repo until curtiss))


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by ramack (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.





    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-04 ramack Planned Releasecurtiss dennis
    2014-10-24 ramack Attached File- Added attributes.e, #32316
    2014-10-20 cadrian Planned Releasebell curtiss
    2014-09-20 ramack Assigned toNone ramack

    Back to the top

    Powered by Savane 3.11