Search

January 14, 2022
Genel »
...import std.stdio;

alias a1 = Point;
alias a2 = Line;
alias a3 = Rectangle;
alias a4 = Node...
January 14, 2022
Issues »
...d(5): Error: alias `maker.FooRef` at maker.c(1) conflicts with alias
`freer.FooRef...
January 13, 2022
Issues »
...if they are the same type is.

---
alias Tuple(T...) = T;

void foo()
{
    Tuple!(int...
January 12, 2022
General »
...pointer/reference

        }(x.get);							//get is @safe

    }();

}

alias ScopedSharedPtr(T) = SharedPtr!(T, true);

struct SharedPtr...
January 12, 2022
Issues »
...Comment #3 from moonlightsentinel@disroot.org ---
Reduction:


alias DrawableRef = Ref!int;

class DrawableCache {
    DrawableRef _nullDrawable...
January 12, 2022
Learn »
...that technique! Seems like it started allowing alias to `tupleof` in 2.094.

`std.typecons...
January 12, 2022
Learn »
...taking advantage of UFCS:

import std.typecons;

alias Point = Tuple!(double, "x", double, "y");

unittest...
January 12, 2022
Learn »
...Point
    {
      double x;
      double y;
      alias expand = typeof(this).tupleof;
      alias expand this;
    }
    unittest
    {
      Point...
January 12, 2022
Learn »
...d
import std.stdio : writeln;


auto filter(alias fn, T)(T[] slice){

    //InputRange:
    static struct...
January 11, 2022
General »
...T objects) {
    conditionalForward!sortImpl(objects);
}

auto conditionalForward(alias toWhat, T...)(T args) {
   // only worried about...
254 255 256 257 258 259 260 261 262 263 264
Next ›   Last »