bearophile wrote:
dsimcha:
This is a good idea, although rotate may be seldom enough used not to warrant
its
own (possibly overloadable) operator.
Overloadable rotate operators can be used to rotate items inside an
user-defined array, in my dlibs I have the templated functions rotateLeft and
rotateRight, and I have used them once in a while.
std.intrinsic might be a better place for rotate.<
In std.intrinsic I'd like to see ways to read and use the carry bit, from D.
Bye,
bearophile
Write an enhancement request.