Search

3 days ago
General »
...scoping works for mixin templates (if you mix in the same mixin template multiple times...
4 days ago
General »
...template serialiserFor(Thing)
{
    import std.traits : fullyQualifiedName;
    mixin("import thingMod = "~fullyQualifiedName!(__traits(parent, Thing))~";");
    alias...
4 days ago
General »
...if (isUserType!thing)
    {
      enum thingMod = getModuleForThing!thing;
      mixin(import " ~  thingMod ~ ";");
    }
    serialise(buffer thing);
  }}
}

The surprise...
4 days ago
Learn »
...T opUnary(string s)()
    {
        T v = read();
        mixin(s ~ "v;");
        volatileStore(&this.value, v);
        return...
5 days ago
Learn »
...mixin("private "~type~" v_"~name~";");
    mixin("public @property "~type~" "~name~"() { return volatileLoad(&v_"~name~"); }");
    mixin...
6 days ago
Learn »
...fix, just voodoo magic :D

When I mixin() my aliases for my Vector types, I...
6 days ago
Issues »
https://issues.dlang.org/show_bug.cgi?id=17203

--- Comment #1 from dlangBugzillaToGithub <robert.schadek...
6 days ago
Issues »
https://issues.dlang.org/show_bug.cgi?id=5351

--- Comment #7 from dlangBugzillaToGithub <robert.schadek...
November 30
Learn »
...0..res.length)
		res[i] = cast(CT) mixin("fun(", T.length.iota.map!(j => "args...
November 20
Announce »
...import redub.plugin.api;

class GetModulePlugin : RedubPlugin {}
mixin PluginEntrypoint!(GetModulePlugin);
```

For using it on prebuild...
« First   ‹ Prev
1 2
Next ›   Last »