September 07, 2021 General » Re: Thank you! | |||
|---|---|---|---|
| |||
...Can't even initialize `a` with index `0` at point of declaration unless size of... | |||
September 06, 2021 Learn » Re: Absence of isAllocator trait | |||
|---|---|---|---|
| |||
...enum isAllocator(T) = (is(typeof(T.allocate(size_t.init)) == void[]) &&
is(typeof(T.alignment... | |||
September 06, 2021 Learn » Re: Absence of isAllocator trait | |||
|---|---|---|---|
| |||
...must have: * `uint alignment` * `void allocate(size_t size)` So it makes sense to have... | |||
September 05, 2021 Learn » Re: "+=" (overloads) with custom array slices on both lhs, and rhs ?? | |||
|---|---|---|---|
| |||
...int* ptr;
size_t length;
myArray opIndex() {
return this;
}
int opIndex(size_t i) {
return... | |||
September 05, 2021 Learn » Re: "+=" (overloads) with custom array slices on both lhs, and rhs ?? | |||
|---|---|---|---|
| |||
...MyArray(T) {
T[] elements;
this(size_t length) {
this.elements.length = length;
}
size_t opDollar... | |||
September 05, 2021 Learn » Re: "+=" (overloads) with custom array slices on both lhs, and rhs ?? | |||
|---|---|---|---|
| |||
...SliceInfo{ size_t start, end; }
SliceInfo opSlice(size_t dim)(size_t start, size_t... | |||
September 02, 2021 Learn » Re: Run-time setting of immutable variable? | |||
|---|---|---|---|
| |||
...size_t:
ubyte[10] Arr;
immutable size_t Address;
static this() {
Address = cast(size_t... | |||
September 01, 2021 General » Re: Containers | |||
|---|---|---|---|
| |||
...members such as [1] `C.with_capacity(size_t)` instead of guessing what C(42... | |||
September 01, 2021 General » Re: Containers | |||
|---|---|---|---|
| |||
...to save on having a separate field.
*/
size_t capacity() const pure @safe
{
return _length... | |||
September 01, 2021 General » Technique: Trial functions to allow attribute inference for mutually recursive methods | |||
|---|---|---|---|
| |||
...void add()(T value) { ... }
void resize()(size_t newsize) { ... }
```
But it still doesn't work... | |||
Copyright © 1999-2021 by the D Language Foundation