3 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...scoping works for mixin templates (if you mix in the same mixin template multiple times... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...template serialiserFor(Thing)
{
import std.traits : fullyQualifiedName;
mixin("import thingMod = "~fullyQualifiedName!(__traits(parent, Thing))~";");
alias... | |||
4 days ago General » Something like ADL from C++? | |||
|---|---|---|---|
| |||
...if (isUserType!thing)
{
enum thingMod = getModuleForThing!thing;
mixin(import " ~ thingMod ~ ";");
}
serialise(buffer thing);
}}
}
The surprise... | |||
4 days ago Learn » Re: volatile struct definition for peripheral control registers | |||
|---|---|---|---|
| |||
...T opUnary(string s)()
{
T v = read();
mixin(s ~ "v;");
volatileStore(&this.value, v);
return... | |||
5 days ago Learn » volatile struct definition for peripheral control registers | |||
|---|---|---|---|
| |||
...mixin("private "~type~" v_"~name~";");
mixin("public @property "~type~" "~name~"() { return volatileLoad(&v_"~name~"); }");
mixin... | |||
6 days ago Learn » Re: How can I have those "template instance recursive expansion" errors under control? | |||
|---|---|---|---|
| |||
...fix, just voodoo magic :D When I mixin() my aliases for my Vector types, I... | |||
6 days ago Issues » [Issue 17203] singleton as mixin | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=17203 --- Comment #1 from dlangBugzillaToGithub <robert.schadek... | |||
6 days ago Issues » [Issue 5351] Add template mixin for Range Primitives using random access | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=5351 --- Comment #7 from dlangBugzillaToGithub <robert.schadek... | |||
November 30 Learn » How can I have those "template instance recursive expansion" errors under control? | |||
|---|---|---|---|
| |||
...0..res.length)
res[i] = cast(CT) mixin("fun(", T.length.iota.map!(j => "args... | |||
November 20 Announce » Redub v1.17.1: Walking on its own direction | |||
|---|---|---|---|
| |||
...import redub.plugin.api;
class GetModulePlugin : RedubPlugin {}
mixin PluginEntrypoint!(GetModulePlugin);
```
For using it on prebuild... | |||
Copyright © 1999-2021 by the D Language Foundation