Method lfun::``+()


Method ``+

mixed ``+(zero arg)

Description

Right side addition/concatenation callback.

This is used by `+. It's called with the sum of the arguments that precede this object in the argument list of the call to `+. The returned value should be a new instance that represents the addition/concatenation between the argument and this object.

Note

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

Note

In versions of Pike prior to 8.1.10 this function could get called with multiple arguments.

See also

lfun::`+(), `+()