Checked shift?
H. S. Teoh via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jul 31 10:59:57 PDT 2014
On Thu, Jul 31, 2014 at 05:00:22PM +0000, bearophile via Digitalmars-d-learn wrote:
> Is it a good idea to add int/uint/long/ulong functions for the "<<"
> left shift operation here?
>
> https://github.com/D-Programming-Language/druntime/blob/master/src/core/checkedint.d
[...]
What would you check for? Shifting something that already has its high
bit set?
T
--
Don't drink and derive. Alcohol and algebra don't mix.
More information about the Digitalmars-d-learn
mailing list