-
Notifications
You must be signed in to change notification settings - Fork 3
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
Loops and other runtime constructs #2
Comments
This is where The source of that run-time value needs to have some known bounds (unless it's potentially infinitely large, which I'm planning on supporting eventually). Then you can use it as
or
or even
and this will give |
This is actually what I am after 😉. Do you have already some ideas how to approach it? Or do you just want to kind of "give up" and resort to bigint or alike? |
I'm going to add support for arbitrarily large integers with compile-time bounds, and those would be computed in the same way as anything else in the library. In addition to that, sometimes it makes sense to just go to unbounded, which I also plan on implementing at some point, but that would be a user decision. It may also make sense to have a hybrid type that functions like std::string's small-buffer optimization. |
Would this have any user-facing interface or will it be just an implementation detail? Otherwise great news! |
Since ever I wanted to have such integer available. The issue is I could not find any nice way how to handle loops with during-runtime-determined number of iterations. This holds also for other runtime constructs if any.
How do you handle operations with integers inside such loops?
The text was updated successfully, but these errors were encountered: