February 02, 2023 Learn » Re: Assign to Array Column | |||
|---|---|---|---|
| |||
...arr = LimitedArray!COL(ROW); assert(arr.cell[0].elements.length >= COL); assert(arr.length == SUM... | |||
February 01, 2023 Learn » Re: Assign to Array Column | |||
|---|---|---|---|
| |||
...0 ],
];
auto arrayish = Arrayish!int(ROW, COL);
assert(arrayish.length == SUM);
// copy array...
foreach(r... | |||
January 30, 2023 General » ImportC bad handling of enum arguments for a function. | |||
|---|---|---|---|
| |||
...64 X86_64 D_LP64 D_PIC assert D_PreConditions D_PostConditions D_Invariants D... | |||
January 30, 2023 Issues » [Issue 23661] New: Using typeid from template inside __traits(compiles, ...) causes linker error | |||
|---|---|---|---|
| |||
...auto x = typeid(T);
}
void main()
{
static assert(__traits(compiles,
{
struct S { int *p = &x... | |||
January 30, 2023 General » Re: RfC for language feature: rvalue struct | |||
|---|---|---|---|
| |||
...num1 ~ 5; assert(num1.length == 5); assert(num1.length > num2.length); num2 = num1; assert(num1... | |||
January 29, 2023 General » Re: RfC for language feature: rvalue struct | |||
|---|---|---|---|
| |||
...typeof(test1.data);
import std.traits : isSomeString;
assert(is(TestType == string) &&
isSomeString!TestType);
test1 = S... | |||
January 28, 2023 General » Re: Allocator-aware @safe reference counting is still not possible | |||
|---|---|---|---|
| |||
...a.safeAllocate(4)))();
a.safeDeallocate(ip.move);
assert(ip.unwrap == null);
}
```
Working code:
https://github... | |||
January 24, 2023 Issues » [Issue 23654] New: execv_: toAStringz: memory corruption | |||
|---|---|---|---|
| |||
...free(argv_);
toAStringz(argv, argv_);
//
// end fragment
//
assert (data_are_the_same (argv, argv_));
}
}
$ dmd... | |||
January 24, 2023 Issues » [Issue 23652] New: Valid code rejected with a "circular reference" error | |||
|---|---|---|---|
| |||
...enum staticOverhead = DispatchTable!().sizeof;
}
struct DispatchTable()
{
static assert (DTB.staticOverhead == typeof(this).sizeof);
}
Error: circular... | |||
January 23, 2023 Issues » [Issue 23651] New: Order dependency in semantic analysis of template members | |||
|---|---|---|---|
| |||
...true
enum isAttrRange = is(NameType == string);
}
static assert(isAttrRange!string); // fails
---
The trouble boils down... | |||
Copyright © 1999-2021 by the D Language Foundation