Pike v8.0 release 1738

Method lfun::`==()


Method `==

bool `==(mixed arg)

Description

Equality test callback.

Note

If this is implemented it might be necessary to implement lfun::__hash too. Otherwise mappings might hold several objects as indices which are duplicates according to this function. Various other functions that use hashing also might not work correctly, e.g. Array.uniq.

Note

It's assumed that this function is side-effect free.

See also

`==(), lfun::__hash