a := b ror c;
x := y rol z;
It would wreck havoc with typing. What should the result be of "1 ror
1"? $80? $8000? $80000000? $8000000000000000? $80000000 on 32 bit and
$8000000000000000 on 64 bit cpus?
I believe the compiler knows the datatype and make an appropriate rotate action
based on it. And knowing what the datatype is -I pressume- the programmer's
responsibility. I think that's why we have bror (byte ror), wror (word ror), and
lror (longint ror) functions within the sample code attached in this thread. :)
-Bee-
has Bee.ography at
http://beeography.wordpress.com
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal