nopromote 0.2.0

A library to remove unnecessary upcasting.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

nopromote

A simple d library that provides integer types that don't promote to a signed 32 bit integer when operated on. Currently it only supports the ldc2 compiler.

Specifics

Commutative operations (+, *, &, |) will always return a value that is the size and signedness of the larger operand. If the size is equal, or the operation is not commutative (/, >>, -) it maintains the size and signedness of the left hand side.

Authors:
  • Isaac P. Stepanek Bunsen
Dependencies:
none
Versions:
0.2.0 2021-Sep-15
0.1.2 2021-Aug-29
0.1.1 2021-Jun-11
0.1.0 2021-Jun-08
~main 2021-Sep-15
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 2 downloads this month

  • 4 downloads total

Score:
0.4
Short URL:
nopromote.dub.pm