September 22, 2021 General » LWDR SAOC Milestone 1, Weekly Report for 15th SEP to 22nd SEP 2021 | |||
|---|---|---|---|
| |||
...pointers are stored as `size_t`s, as CAS operations don't work with `void... | |||
September 20, 2021 General » Re: Interface Limitations in D | |||
|---|---|---|---|
| |||
...just like:
```D
size_t count(InputRange r)
{
}
```
instead of
```D
size_t count(Range... | |||
September 20, 2021 General » Re: Static associative array expressions | |||
|---|---|---|---|
| |||
...mimic the true AA impl
struct FakeBucket {
size_t hash;
void * entry;
}
struct FakeAAImpl
{
FakeBucket... | |||
September 20, 2021 General » Re: Static associative array expressions | |||
|---|---|---|---|
| |||
...can add
```d
Value* opIndex (Key key)
{
size_t search_item_idx = hash(key) % n... | |||
September 19, 2021 General » Interface Limitations in D | |||
|---|---|---|---|
| |||
...for structs. Since the type-size is unknown, it wouldn't allow opaque value-types... | |||
September 18, 2021 Learn » Re: Program crash: GC destroys an object unexpectedly | |||
|---|---|---|---|
| |||
...uint events;
epoll_data_t data;
}
}
```
I am...and has 12 bytes size.
2) old gdc... | |||
September 17, 2021 Learn » Re: yet another segfault - array out of bound is not caught by try catch | |||
|---|---|---|---|
| |||
...Type[]` arrays in D are effectively struct {size_t length; Type* ptr; } under the hood... | |||
September 17, 2021 Learn » Re: GC seems to crash my C-code function | |||
|---|---|---|---|
| |||
...padded_size, attr, tinext);
...
}
```
->
```d
// gc.impl.conservative.gc
BlkInfo qalloc( size_t size, uint... | |||
September 17, 2021 Learn » Re: Merge 2 structs together (into a single struct)? | |||
|---|---|---|---|
| |||
...Options
{
@Option("threads", "t")
@Help("Number of threads to use.")
size_t threads;
@Option("file... | |||
September 16, 2021 Learn » Re: Array permutations | |||
|---|---|---|---|
| |||
...nothrow
T[][] computeChoices(T)(T[] values, size_t tupleSize = 2)
{
if (tupleSize == 0) {
return [[]];
}
T... | |||
Copyright © 1999-2021 by the D Language Foundation