Search

May 16, 2022
Issues »
...allocates, bypassing @nogc and -vgc.

struct Forward(alias F) {
    auto opCall(Ts...)(Ts args) {
        return...
May 16, 2022
General »
...yourstruct.item


So it is basically an `alias this` style forwarder done as a C...
May 15, 2022
Duyuru »
...expressions
  alias sum  = partial!(binOp, Op.Plus);
  alias diff = partial!(binOp, Op.Minus);
  alias prod...
May 14, 2022
General »
...d
import std.sumtype;

void main() @safe
{
    alias MyType = SumType!(int, char[]);
    auto mt = const...
May 13, 2022
Issues »
...100 compiler.

Minimal object.d:
---
module object;

alias size_t = typeof(int.sizeof);
class Object...
May 13, 2022
Issues »
...data;
    enum SMALLARRAYCAP = 1;
    T[SMALLARRAYCAP] smallarray;

}
alias Ensures = Array!Ensure;
---
module dmd.func;
import...
May 13, 2022
Learn »
...conv : to;

alias Pointer(T) = T*;

class MultiGraph(Ts...){	// Ts == (float, double, int)
    alias DataSources...
May 13, 2022
Issues »
...id=22536 (not restricted to array literals). And the runtime one related to `alias this`.

--
May 13, 2022
Issues »
...this.dtors = _dtors; }

    ~this() { ++*dtors; }

    int* dtors;
    alias dtors this;
}

int* explicit(int* dtors) { return...
May 13, 2022
Learn »
...import std.conv : to;

alias Pointer(T) = T*;

    class MultiGraph(Ts...){
    	alias DataSources = staticMap!(Pointer...
218 219 220 221 222 223 224 225 226 227 228
Next ›   Last »