Search

October 23
Learn »
...object to go with it. For the alias of a member function to actually be...
October 23
Learn »
...that "alias" != "macro".  If you're looking for a way to shorten long expressions, `alias...
October 23
Learn »
What's the motivation behind it? For me, it looks like a weird edge case...
October 23
Learn »
...passing `a=>a.test` to whatever function instead of trying to control the alias formally
October 23
Learn »
...here https://dlang.org/spec/declaration.html#alias and it states: "An AliasDeclaration creates a...
October 23
Learn »
static and enum are not the same thing.

An enum has no memory location, and...
October 23
Learn »
...size_t idx;
}

alias myType = Numbers; // Test; // not works!
void main()
{
  alias myAlias = MyStruct!myType...
October 23
Learn »
The code also compiles like this. In this case, can we say that there are...
October 23
Learn »
...an `alias` to refer to a member variable like this. When you write

    alias myAlias...
October 23
Learn »
...good catch. `alias myAlias = MyStruct.test` is really just a typo, I meant  `alias myAlias...
1 2 3 4 5 6 7 8 9 10
Next ›   Last »