Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BitX.Value should not be public #7

Open
fanoI opened this issue Apr 30, 2017 · 3 comments
Open

BitX.Value should not be public #7

fanoI opened this issue Apr 30, 2017 · 3 comments

Comments

@fanoI
Copy link

fanoI commented Apr 30, 2017

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

@ufcpp
Copy link
Owner

ufcpp commented May 2, 2017

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

@fanoI
Copy link
Author

fanoI commented May 15, 2017

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

@ufcpp
Copy link
Owner

ufcpp commented May 15, 2017

I want:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants