August 24, 2021 General » Sometimes 100 lines of code can fix your ctfe perf | |||
|---|---|---|---|
| |||
...1;
goto LappendToLastChunk;
}
else
{
assert(0,
"string to...enum n_iterations = 4096;
}
pragma(msg, "N: ", n... | |||
August 18, 2021 General » Add Fields to a struct with core.reflect | |||
|---|---|---|---|
| |||
...immutable AggregateDeclaration) aggregateFromType(srcAggType);
assert(srcAgg, "type was...nodeFromName("i32", ModuleScope), "w");
pragma(msg, __traits(allMembers... | |||
August 16, 2021 Issues » [Issue 22218] New: Dynamic casts across binary boundaries can easily fail | |||
|---|---|---|---|
| |||
...dll;
mixin SimpleDllMain;
}
pragma(mangle, "foo")
export Object foo(Object o)
{
assert(cast(C!()) o... | |||
August 15, 2021 Learn » Re: What exactly are the String literrals in D and how they work? | |||
|---|---|---|---|
| |||
...string
pragma(msg, is(typeof("John") == immutable(char)[])); // true
}
```
```d
void zerort(string s) {
assert... | |||
August 05, 2021 Issues » [Issue 22181] New: No stack trace if usage of SimpleDllMain in static linked DLL | |||
|---|---|---|---|
| |||
...import std.stdio;
pragma(lib, "common.lib");
extern int test();
void main()
{
assert(test() == 123... | |||
July 21, 2021 General » Re: betterC shared static ctor | |||
|---|---|---|---|
| |||
...C):
pragma(crt_constructor) void crt_this() {
*cast(int *)&i = 42;
}
void main() {
assert(i... | |||
July 21, 2021 Learn » Re: betterC shared static ctor | |||
|---|---|---|---|
| |||
...foo3.base;
assert(b1.getId() == 1);
assert(b2...io/is/FNqHWh :
```d
pragma(crt_constructor)
extern... | |||
June 29, 2021 General » Re: Metaprogramming without templates | |||
|---|---|---|---|
| |||
...import core.reflect.nodeToSource;
pragma(msg, () {
string result...statements ~= new ReturnStatement();
}
else
assert(0, "non void... | |||
June 29, 2021 General » Re: Metaprogramming without templates | |||
|---|---|---|---|
| |||
...import core.reflect.nodeToSource;
pragma(msg, () {
string result...statements ~= new ReturnStatement();
}
else
assert(0, "non void... | |||
June 24, 2021 General » Re: Metaprogramming without templates | |||
|---|---|---|---|
| |||
...arr_node).type; static assert(arr_type.identifier...arr_type.dim == 2 ); pragma(msg, "typeof(x... | |||
Copyright © 1999-2021 by the D Language Foundation