BitFields icon indicating copy to clipboard operation
BitFields copied to clipboard

BitX.Value should not be public

Open fanoI opened this issue 8 years ago • 3 comments

To make BitX more as number Value should not be public but private / internal, any conversion should happen with cast operations.

fanoI avatar Apr 30 '17 14:04 fanoI

It's by design. I'd like to avoid overhead.

Instead, I have a plan to another version of BitX implementation:

  • unchecked (current implementation): no runtime check, a public field, implicit cast to an underlying type
  • checked (planned): +, -, *, / operators with range check, a private field, explicit cast to an underlying type

ufcpp avatar May 02 '17 01:05 ufcpp

The idea is that you choose on generation what one generate?

fanoI avatar May 15 '17 08:05 fanoI

I want: image

ufcpp avatar May 15 '17 13:05 ufcpp