June 09, 2022 General » Re: dip1000 and preview in combine to cause extra safety errors | |||
|---|---|---|---|
| |||
...pointers. This means that `size_t` parameters accompanying pointers can't be used to judge... | |||
June 09, 2022 Learn » Generating unique identifiers at compile time | |||
|---|---|---|---|
| |||
...hacky way:
```d
auto hopefullyUniqueName(size_t n, size_t line=__LINE__) {
return format!"____________________________var... | |||
June 09, 2022 General » Very hacky solution to class private members | |||
|---|---|---|---|
| |||
...next(T)
{
mixin(member(counter!(T)));
}
template xorShift(T,size_t x = counter!(T))
{
static... | |||
June 08, 2022 General » Re: dip1000 and preview in combine to cause extra safety errors | |||
|---|---|---|---|
| |||
...the point. ```d extern(C) void *malloc(size_t); extern(C) void free(void *); // @safe... | |||
June 08, 2022 General » auto vectorization observations | |||
|---|---|---|---|
| |||
...T); void choose(size_t n, CT* src, T threshold, CT* a, CT* b, T... | |||
June 07, 2022 Learn » Re: C-like static array size inference - how? | |||
|---|---|---|---|
| |||
...in the `$`. Not to mention, I don't know if 2-dimensional or n-dimensional... | |||
June 07, 2022 Learn » Re: C-like static array size inference - how? | |||
|---|---|---|---|
| |||
...2 ]; int[_] arr = [ 1, 2 ]; But I can't find past discussions about that. Ali | |||
June 07, 2022 Issues » [Issue 23170] Array literal passed to map in lambda, then returned from nested function, is memory corrupted | |||
|---|---|---|---|
| |||
...return null;
int[] result;
result.length = 3;
size_t i;
foreach (e; r)
{
result[i... | |||
June 07, 2022 Learn » Re: C-like static array size inference - how? | |||
|---|---|---|---|
| |||
...I was kind of distracted and i didn't type it correctly. Your solution works. | |||
June 06, 2022 Learn » Re: C-like static array size inference - how? | |||
|---|---|---|---|
| |||
...Can't i use some feature to imply that D must deduct the size > from... | |||
Copyright © 1999-2021 by the D Language Foundation