[lisaac-Feature Requests][312043] inherit slot data parameters

lisaac-featurerequests at alioth.debian.org lisaac-featurerequests at alioth.debian.org
Wed Nov 4 23:17:08 UTC 2009


Feature Requests item #312043, was opened at 2009-11-05 00:17 by Mildred Ki'Lya
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413104&aid=312043&group_id=100200

Status: Open
Priority: 3
Submitted By: Mildred Ki'Lya (mildred-guest)
Assigned to: Nobody (None)
Summary: inherit slot data parameters 


Initial Comment:
Problem:

The parent has a code slot with a parameter `read:READ'
The child has a data slot `+ read :READ;' (might be inherited from somewhere)
The child need to redefine the code slot.

Then, because the child has to keep the same parameter name in the code slot, the code can't directly access the `read' slot from the prototype.

Current solutions:

Using `Self.read', but that is NOT the same (contracts executed)
Create a private slot `get_read' and `set_read' and use it instead

Proposed solution:

Allow to add in child "_#" to the parameter of the code slot


----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413104&aid=312043&group_id=100200



More information about the Lisaac-devel mailing list