equality of famix references

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

equality of famix references

Alexandre Bergel
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.

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: equality of famix references

Simon Denier-3

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
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
 Simon




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: equality of famix references

anquetil.nicolas
> 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

--
Nicolas Anquetil        Univ. Lille1 / INRIA-equipe RMod

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: equality of famix references

Alexandre Bergel
> 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

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev