A horrible alternative would be to use `alias` on `size_t` to
make up a new pseudo-type that is more aligned with the code
logic.
```
alias integer = size_t;
import std.stdio : writefln;
void main() {
auto arr = [
[5, 15], // 20
[2, 3, 2, 3], // 10
[3, 6, 2, 9]
I need a FIFO for a work scheduler, and nothing suitable jumped
out at me. I wrote the following, but as a newbie, would be
happy to receive any suggestions or observations. TIA!
/*
* fifo.d
* FIFO data structure
*/
module tiny.fifo;
import std.exception : enforce;
const uint GROWBY
On Saturday, 11 May 2024 at 20:04:38 UTC, Lance Bachmeier wrote:
On Saturday, 11 May 2024 at 19:33:03 UTC, solidstate1991 wrote:
I know that BindBC exists and otherwise would use it, but the
bigger the library, the more extra hurdle it'll have. When I
did a few bindings with it, I had to order
On Saturday, 11 May 2024 at 19:33:03 UTC, solidstate1991 wrote:
I know that BindBC exists and otherwise would use it, but the
bigger the library, the more extra hurdle it'll have. When I
did a few bindings with it, I had to order the functions the
right way, so I could do things much quicker wi
On Thursday, 9 May 2024 at 18:48:12 UTC, Nick Treleaven wrote:
We have a tool in our box already called `true` and that
solves the problem. If we had to type out the full name of
every argument passed to every function ever written we may as
well just adopt ObjC Cocoa style and call it
StopW