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

 
 

bug #43266: self-initilizing attributes

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

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach Files:
   
   
Comment:
   

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)
  •  

    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.

     

     

     

    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.4