Method `>>()
- Method
`>>
int`>>(intarg1,int(0..)arg2)
mixed`>>(objectarg1,int(0..)|objectarg2)
mixed`>>(intarg1,objectarg2)
float`>>(floatarg1,int(0..)arg2)- Description
Right shift.
Every expression with the
>>operator becomes a call to this function, i.e.a>>bis the same aspredef::`>>(a,b).If
arg1is an object that implements lfun::`>>(), that function will be called witharg2as the single argument.If
arg2is an object that implements lfun::``>>(), that function will be called witharg1as the single argument.If
arg1is a float andarg2is a non-negative integer,arg1will be divided by1<<.arg2Otherwise
arg1will be shiftedarg2bits right.- See also