May 13, 2022 Issues » [Issue 23105] `__trait(getMember)` and `mixin()` of the same code as a string behave differently | |||
|---|---|---|---|
| |||
...The fix is to remove the `SCOPE.alias_` dependency when resolving TypeTraits on certain conditions... | |||
May 13, 2022 Issues » [Issue 23105] `__trait(getMember)` and `mixin()` of the same code as a string behave differently | |||
|---|---|---|---|
| |||
...The fix is to remove the `SCOPE.alias_` dependency when resolving TypeTraits on certain conditions... | |||
May 12, 2022 Issues » [Issue 20670] immutable template specialization pattern matches immutable struct, strips immutable | |||
|---|---|---|---|
| |||
...type system) is to use a public alias to a qualified version of a private... | |||
May 12, 2022 Learn » Re: What are (were) the most difficult parts of D? | |||
|---|---|---|---|
| |||
...expressions, Identifier is now declared as an alias to the type, if the is expression... | |||
May 12, 2022 Learn » Re: What are (were) the most difficult parts of D? | |||
|---|---|---|---|
| |||
...safe
{
CharMap result;
// bounds
foreach(elem; a)
{
alias T = typeof(elem);
static if (isSomeChar!T... | |||
May 12, 2022 Learn » Re: What are (were) the most difficult parts of D? | |||
|---|---|---|---|
| |||
...know it well enough to construe one: ``` alias AA = long*[string]; static if (is(AA... | |||
May 12, 2022 Issues » [Issue 23105] `__trait(getMember)` and `mixin()` of the same code as a string behave differently | |||
|---|---|---|---|
| |||
...getMember = `__traits(getMember, sym, m)`;
template test(alias sym)
{
static foreach (m; __traits(allMembers, sym... | |||
May 12, 2022 Issues » [Issue 23105] New: `__trait(getMember)` and `mixin()` of the same code as a string behaves differently | |||
|---|---|---|---|
| |||
...getMember = `__traits(getMember, sym, m)`;
template test(alias sym)
{
static foreach (m; __traits(allMembers, sym... | |||
May 12, 2022 Issues » [Issue 23104] case where use of mixin() is rejected but use of the mixin content as code is not | |||
|---|---|---|---|
| |||
...also the version that compiles should not alias _ = printMembers!(mixin(getMember), m); but printMembers takes... | |||
May 12, 2022 Issues » [Issue 23104] New: case where use of mixin() is rejected but use of the mixin content as code does | |||
|---|---|---|---|
| |||
...getMember)==struct)) // HERE
{
alias _ = printMembers!(mixin(getMember), m); // ERROR HERE
}
}
}
void main()
{
alias _ = printMembers!(mixin... | |||
Copyright © 1999-2021 by the D Language Foundation