Signed word lengths and indexes

Justin Spahr-Summers Justin.SpahrSummers at gmail.com
Thu Jun 17 01:09:40 PDT 2010


On Thu, 17 Jun 2010 10:00:24 +0200, Don <nospam at nospam.com> wrote:
> (D has introduced ANOTHER instance of this with the ridiculous >>> 
> operator.
> byte b = -1;
> byte c = b >>> 1;
> Guess what c is!
> )
> 

127, right? I know at least RISC processors tend to have instructions 
for both a logical and algebraic right shift. In that context, it makes 
sense for a systems programming language.


More information about the Digitalmars-d mailing list