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: SmartEiffelSeverity: 2 - Minor
Priority: 5 - NormalStatus: None
Assigned to: Raphael Mack <ramack>Open/Closed: Open
Release: NoneFixed Release: None
Planned Release: curtiss

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 File(s):
   
   
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
  • -unavailable- added by ramack (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 24 Oct 2014 09:20:19 AM UTCramackAttached File-=>Added attributes.e, #32316
    Mon 20 Oct 2014 09:28:17 AM UTCcadrianPlanned Releasebell=>curtiss
    Sat 20 Sep 2014 10:57:29 PM UTCramackAssigned toNone=>ramack

    Back to the top


    Powered by Savane 3.1-cleanup1