Search

January 25, 2023
General »
...that are all solved by the local alias approach).

This is my biggest objection to...
January 23, 2023
Issues »
...template FunctionTypeOf(alias func)
if (isCallable!func)
{
    alias FunctionTypeOf = typeof(foo);
}

template ReturnType(alias func...
January 22, 2023
Learn »
...template t6(alias p) { }
    testTemplate!t6([TemplateParameter(TemplateParameterType.aliasType, "p", "")]);

    template t7(alias p = 12...
January 22, 2023
Issues »
...alias aliases(a...) = a;

alias Components = Dependencies!();

template Dependencies()
{
    alias Dependencies = aliases!(Top.DirectDependencies);
    // alias...
January 21, 2023
Issues »
...com

alias aliases(a...) = a;

alias Components = Dependencies!Top;

template Dependencies(alias Component)
{
    alias Dependencies...
January 21, 2023
General »
...template a(alias A) {}` always returning A not that interesting, but if the alias name...
January 21, 2023
General »
...bu var in Turkish) :
```d
struct Str
{
  alias ToString this;
  size_t s;
  string ToString...
January 21, 2023
General »
...short n) { this.n = n; }
}

void print(alias T)()
{
    import std.stdio : writeln;
  ...
January 20, 2023
Learn »
...char)[])(T x) { }
template constraintsOf(alias templ) { /*Magic here*/ }
alias constraints = constraintsOf!f; // tuple(long...
January 20, 2023
Learn »
...need this to avoid the instantiation syntax
alias Algo = Algo_ns!();
```

The benefit here is...
141 142 143 144 145 146 147 148 149 150 151
Next ›   Last »