2 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...conversion with classes is broken given the fact that alias this exists). - Jonathan M Davis | |||
2 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...conversions that are the core problem with alias this, and it avoids all issues with... | |||
2 days ago Learn » Re: Partial application on Nth argument | |||
|---|---|---|---|
| |||
...4, o)(h,e,l,l) == "hello");
alias Fun = bindArgument!(hello, 5, e);
//Fun(h... | |||
3 days ago Learn » Re: Partial application on Nth argument | |||
|---|---|---|---|
| |||
...b; alias sum11= partialN!(sum, 1, 10, 11, 12); assert(sum11(9) == 20); alias sum12... | |||
3 days ago Learn » Re: Partial application on Nth argument | |||
|---|---|---|---|
| |||
...is trivail
```d
import std;
template partialN(alias F,int arg,argvalue...){
auto partialN(T... | |||
3 days ago Learn » Partial application on Nth argument | |||
|---|---|---|---|
| |||
...equal to 5 // fun5 = fun(a, 5); alias fun5 = partialN!(fun, 1, 5); writeln(fun5... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...careful when designing my proposal for replacing alias this. Keep things nice and simple, by... | |||
4 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...suggest that the member variable version of 'alias this' is also a form of embedding... | |||
4 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...gives is the implicit field conversion which 'alias this' seems to offer some form of... | |||
4 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
As I recall, the main purpose of 'alias this' is to offer implicit conversion of... | |||
Copyright © 1999-2021 by the D Language Foundation