Why aren't functions equal to themselves?

Why does this (image) report false?

the two blocks are different morphs, or objects, they are not the same block. Try this script
untitled script pic (1)
then try this script
untitled script pic (2)
with the second script, you see that when comparing the variable to itself, you get true, but not if you compare it to a similar value. That is because with the second script, it's comparing to itself, but the first script is comparing it to a different morph.

That's certainly odd, considering lists can be equal to themselves, and they're technically different morphs.

Lists are handled specially; they are compared item by item, so two lists that were constructed separately can still be equal.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.