|Newbie questions about Pliant
|Message posted by maybe Takeda on 2003/10/06 19:26:48
|The Pliant documentation says:
"Please note that there are no bit-shift operators (equivalent to << and >> in C)
in Pliant since the ^ operator, which does not exist in C, can replace them."
For instance, suppose I would like to translate the following code to Pliant
int length = (dx - 1) >> 2;
How would I translate it?
|Message posted by hubert.tonneau on 2003/10/06 19:31:32
|var Int length := (dx - 1) \ 2^2