Method `~()
- Method
`~
mixed`~(objectarg)
int`~(intarg)
float`~(floatarg)
type`~(type|programarg)
string`~(stringarg)- Description
Complement/inversion.
Every expression with the
~operator becomes a call to this function, i.e.~ais the same aspredef::`~(a).- Returns
The result will be as follows:
argcan have any of the following types:objectIf
argimplements lfun::`~(), that function will be called.intThe bitwise inverse of
argwill be returned.floatThe result will be
-1.0 -.argtype|programThe type inverse of
argwill be returned.stringIf
argonly contains characters in the range 0 - 255 (8-bit), a string containing the corresponding 8-bit inverses will be returned.- See also