November 11, 2021 General » Re: Challenge: write a reference counted slice that works as much as possible like a built-in slice | |||
|---|---|---|---|
| |||
...t even know it because you didn't...or (insert your cache size here). Over time... | |||
November 11, 2021 Learn » Re: Wrong result with enum | |||
|---|---|---|---|
| |||
...size_t`. Multiplication of two ints is still an int though, and you can't... | |||
November 11, 2021 Learn » Re: Wrong result with enum | |||
|---|---|---|---|
| |||
...the `size_t`.
`cast(size_t)w * w` or the declaration `enum : size_t { w... | |||
November 11, 2021 Learn » Re: Wrong result with enum | |||
|---|---|---|---|
| |||
...you on 32-bit OS? I believe `size_t` is 32 bits on 32 bit... | |||
November 11, 2021 Learn » Re: Wrong result with enum | |||
|---|---|---|---|
| |||
...enum w = 100_000; size_t b = w * w; // size_t b = 100000 * 100000; // ??? assert... | |||
November 11, 2021 Learn » Re: "need `this` for `s` of type `char*`" error message | |||
|---|---|---|---|
| |||
...int64_t i; /* int value */
double d; /* double value */
}
}
```
If you check the size of... | |||
November 11, 2021 Learn » Re: "need `this` for `s` of type `char*`" error message | |||
|---|---|---|---|
| |||
...int64_t i; /* int value */
double d; /* double value */
}
}
```
If you check the size of... | |||
November 11, 2021 Learn » Wrong result with enum | |||
|---|---|---|---|
| |||
...Version:
void main(){
enum t = 10_000;
size_t a = t * t;
assert(a == 100... | |||
November 10, 2021 Issues » [Issue 22501] New: Improve lambda inference for delegate type template params | |||
|---|---|---|---|
| |||
...signature:
```
size_t count(T, P : bool delegate(T))(T[] array, P predicate) {
size_t... | |||
November 09, 2021 Learn » Re: Cannot compile C file using ImportC | |||
|---|---|---|---|
| |||
...static void* (*ppmalloc)(size_t) = malloc;` to `static void* (*ppmalloc)(size_t) = &malloc;` may solve... | |||
Copyright © 1999-2021 by the D Language Foundation