yank '>>>'?

dsimcha dsimcha at yahoo.com
Sun Dec 6 09:36:49 PST 2009


== Quote from bearophile (bearophileHUGS at lycos.com)'s article
> Andrei Alexandrescu:
> > Should we yank operator>>>?
> We can change it purpose and add the other one:
> <<< rotate left
> >>> rotate right
> Bye,
> bearophile

This is a good idea, although rotate may be seldom enough used not to warrant its
own (possibly overloadable) operator.  std.intrinsic might be a better place for
rotate.  On the other hand, rotate is a single ASM instruction, at least on x86.
In a close to the metal language, there needs to be a straightforward, efficient
way to access it.



More information about the Digitalmars-d mailing list