October 23 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
...object to go with it. For the alias of a member function to actually be... | |||
October 23 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
...that "alias" != "macro". If you're looking for a way to shorten long expressions, `alias... | |||
October 23 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
What's the motivation behind it? For me, it looks like a weird edge case... | |||
October 23 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
...passing `a=>a.test` to whatever function instead of trying to control the alias formally | |||
October 23 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
...here https://dlang.org/spec/declaration.html#alias and it states: "An AliasDeclaration creates a... | |||
October 23 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
static and enum are not the same thing. An enum has no memory location, and... | |||
October 23 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
...size_t idx;
}
alias myType = Numbers; // Test; // not works!
void main()
{
alias myAlias = MyStruct!myType... | |||
October 23 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
The code also compiles like this. In this case, can we say that there are... | |||
October 23 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
...an `alias` to refer to a member variable like this. When you write
alias myAlias... | |||
October 23 Learn » Re: std.algorithm.countUntil and alias | |||
|---|---|---|---|
| |||
...good catch. `alias myAlias = MyStruct.test` is really just a typo, I meant `alias myAlias... | |||
Copyright © 1999-2021 by the D Language Foundation