December 26, 2020 Learn » Re: Get the code of any D-entity as string? | |||
|---|---|---|---|
| |||
...getMember, T, m)))
alias sym = __traits(getOverloads, T, m);
else
alias sym = AliasSeq!(__traits(getMember... | |||
December 22, 2020 General » Re: The worst overload system that actualy works | |||
|---|---|---|---|
| |||
...template overload(symbols...)
{
static foreach (sym; symbols)
alias overload = sym;
}
Of course, we still leave... | |||
December 08, 2020 Issues » [Issue 20607] [shared] static constructor & co can be called as regular function | |||
|---|---|---|---|
| |||
...this being a blocker to solve this issue. E.g. adding `__traits({ctors, dtor}, SYM)`.
-- | |||
October 11, 2020 General » Re: is(x = module) vs. __traits(isModule, x) | |||
|---|---|---|---|
| |||
...of an expression). 'Template lambda' is really anonymous templates: enum(alias Sym) => __traits(isModule, Sym) | |||
October 08, 2020 General » Re: is(x = module) vs. __traits(isModule, x) | |||
|---|---|---|---|
| |||
...getOverloads, __traits(parent, sym), __traits(identifier, sym)) and this? sym.__parent.__overloads(sym.__identifier) Maybe... | |||
October 07, 2020 General » Re: is(x = module) vs. __traits(isModule, x) | |||
|---|---|---|---|
| |||
...mixin(`__traits(%s, sym, Args)`.format(name))))
{
enum opDispatch = mixin(`__traits(%s, sym, Args)`.format... | |||
October 05, 2020 Issues » [Issue 19590] __traits allMembers should put fully qualified names for imports | |||
|---|---|---|---|
| |||
...did not respect the fact that a sym has a single ident. class ImportWrapper : Dsymbol... | |||
September 28, 2020 Learn » Re: Any way to tell if an object is inside another class? | |||
|---|---|---|---|
| |||
...enum hasParent(alias sym) = is(__traits(parent, sym) == class) || is(__traits(parent, sym) == struct); void... | |||
September 24, 2020 General » Re: static map as a type function | |||
|---|---|---|---|
| |||
...isTypeidExp().obj))
{
auto sym = t.toDsymbol(null);
if (auto ident = (sym ? sym.ident : null))
{
result... | |||
September 21, 2020 General » hasStaticMember and enums | |||
|---|---|---|---|
| |||
...uses: alias sym = Alias!(__traits(getMember, U, member)); ... enum hasStaticMember = __traits(compiles, &sym); which of... | |||
Copyright © 1999-2021 by the D Language Foundation