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
Fix missing void back(bool)
in Array!bool.Range
#1656
Conversation
Is there a test-case already in place for this? I imagine not. :) |
Nope. I'll write the minimal test that covers all functions. |
Ended up adding some missing opDollar, a missing opSlice, and changing some size_t to ulong. Although arguably, I think I should have instead changed to size_t? |
Why did it use ulong to begin with? I think we should use size_t. |
The idea is that someone may want to allocate 8_000_000_000 bools on a 32 bit system, which is perfectly fine (takes 1G memory), but it requires a type larger than size_t to access all those bools. That said, I don't think this special ability warrants the problems that come with not using size_t. C++'s I'll change everything back to size_t then. Seems smarter... |
It seems like the job of Array!bool is to compact memory, but not necessarily allow a greater number of elements. So using |
Any attempts to use anything other than |
Forked from #1010 Also some cleanup: changed ulong to size_t, some spaces, some Tuples, some "!(T)"=>"!T"
Done. I also filed an issue for it: Also, removed some gratuitous (IMO) Tuple usage, when a simple struct would have done. I think this is good for review now. |
LGTM. |
Fix missing `void back(bool)` in Array!bool.Range
Forked from #1010