January 25, 2023 General » Re: Why are you using `std.traits.fullyQualifiedName`? | |||
|---|---|---|---|
| |||
...that are all solved by the local alias approach). This is my biggest objection to... | |||
January 23, 2023 Issues » [Issue 23651] New: Order dependency in semantic analysis of template members | |||
|---|---|---|---|
| |||
...template FunctionTypeOf(alias func)
if (isCallable!func)
{
alias FunctionTypeOf = typeof(foo);
}
template ReturnType(alias func... | |||
January 22, 2023 Learn » Re: Is there a way to get a template’s parameters and constraints? | |||
|---|---|---|---|
| |||
...template t6(alias p) { }
testTemplate!t6([TemplateParameter(TemplateParameterType.aliasType, "p", "")]);
template t7(alias p = 12... | |||
January 22, 2023 Issues » [Issue 23646] A nastier forward reference bug | |||
|---|---|---|---|
| |||
...alias aliases(a...) = a;
alias Components = Dependencies!();
template Dependencies()
{
alias Dependencies = aliases!(Top.DirectDependencies);
// alias... | |||
January 21, 2023 Issues » [Issue 23646] New: A nastier forward reference bug | |||
|---|---|---|---|
| |||
...com
alias aliases(a...) = a;
alias Components = Dependencies!Top;
template Dependencies(alias Component)
{
alias Dependencies... | |||
January 21, 2023 General » Re: Why are you using `std.traits.fullyQualifiedName`? | |||
|---|---|---|---|
| |||
...template a(alias A) {}` always returning A not that interesting, but if the alias name... | |||
January 21, 2023 General » Re: Why are you using `std.traits.fullyQualifiedName`? | |||
|---|---|---|---|
| |||
...bu var in Turkish) :
```d
struct Str
{
alias ToString this;
size_t s;
string ToString... | |||
January 21, 2023 General » Re: Why are you using `std.traits.fullyQualifiedName`? | |||
|---|---|---|---|
| |||
...short n) { this.n = n; }
}
void print(alias T)()
{
import std.stdio : writeln;
... | |||
January 20, 2023 Learn » Is there a way to get a template’s parameters and constraints? | |||
|---|---|---|---|
| |||
...char)[])(T x) { }
template constraintsOf(alias templ) { /*Magic here*/ }
alias constraints = constraintsOf!f; // tuple(long... | |||
January 20, 2023 Learn » Re: Non-ugly ways to implement a 'static' class or namespace? | |||
|---|---|---|---|
| |||
...need this to avoid the instantiation syntax alias Algo = Algo_ns!(); ``` The benefit here is... | |||
Copyright © 1999-2021 by the D Language Foundation