LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reference comparison and classes - Details?

Hi!!
 
I would like to have some details about reference comparison, namely:
 
comparison is made on the reference number only or there is also comparison with the class the referenced object belongs to?
And if two reference subclasses are casted into a common superclass, are they now comparable?
0 Kudos
Message 1 of 2
(2,553 Views)
Technically, comparing references should return true if the references point to the same object, and the equal node is supposed to upcast if needed (unless both references are strict). You should not trust the number because not all references to the same object will necessarily return the same number. You can see some more on this here. The effect seen there has been corrected in 8.0.

___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,546 Views)