Hi Stef,
above/below refer to the order of relationships in code, not to source/
target :).
I do not understand what is the iv that you refer to in Association. I
guess it's above/below. If so, the real state of the relationships is
actually in the subclass:
- Access: accessor -> variable
- Inheritance: subclass-> superclass
- Invocation: sender -> receiver
- Reference: from -> to
Cheers,
Doru
On Dec 15, 2008, at 9:55 AM, Stéphane Ducasse wrote:
Hi doru
in association we (simon and me) have problems with above: and
below: (which only works for inheritance)
we suggest from: to: which would have the benefit that when we do
not want to distinguish between access and
reference give us the interface with want.
Access from a method to a structure
Access accessor a method to a structure
Reference from a method to a structure
Inheritance from a class to its superclass
Then I do not understand why the instance variable is defined both
in the class and its superclass
either we have
abstract methods in Association and no state in Association and
attributes in subclasses.
or we have
state in Association and method in subclass reuse this state (= no
definition of other iv in subclasses)
To help debugging we prefer to have state in subclasses and abtsract
superclass methods.
Stef
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
www.tudorgirba.com/blog
"From an abstract enough point of view, any two things are similar."