On 8 oct. 2010, at 15:05, Alexandre Bergel wrote:
Hi!
The following returns false.
| m c| m := FAMIXMethod new. c := FAMIXClass new.
(FAMIXReference new source: m; target: c) = (FAMIXReference new source: m; target: c)
Is it a bug or a feature?
As Guillermo pointed out, this is an odd behavior.
One FamixReference represents one reference from within a method to a class, and there can be multiple such references from a single method to the same class. So, this is expected.
That said, there is no way right now to create two FamixReferences to represent the same entity in code, but does it make sense?
Cheers, Alexandre
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Simon
That said, there is no way right now to create two FamixReferences to represent the same entity in code, but does it make sense?
Did not understand ... ?
2 references representing the same entity? A reference is not an entity?
As for Alex question, I would agree with Simon: It might be usefull to know that a method makes 1 or 10 different references to the same other entity. I believe verveineJ does it that way (I didn't check).
nicolas
As for Alex question, I would agree with Simon: It might be usefull to know that a method makes 1 or 10 different references to the same other entity.
Yeah sorry for my question. What you said make sense. It is still early in the morning here :-)
Alexandre