January 08, 2024 General » Re: We are forking D | |||
|---|---|---|---|
| |||
...std.typecons.Tuple`?
```d
import std;
void main()
{
int i = 4;
auto tup2 = tuple(i... | |||
January 08, 2024 General » Re: We are forking D | |||
|---|---|---|---|
| |||
...foreach(i, Arg; Args) {
static if (is(Arg : typeof(tuple))) {
// is tuple for arg i
}
}
}
``` | |||
January 07, 2024 General » Re: We are forking D | |||
|---|---|---|---|
| |||
...them in the form of:
```
template tuple(A ...) { alias tuple = A; }
```
but the compiler wants... | |||
January 07, 2024 General » Re: We are forking D | |||
|---|---|---|---|
| |||
...But, if the tuple is created with:
```
template tuple(A ...) { alias tuple = A; }
```
then a... | |||
January 07, 2024 General » Re: We are forking D | |||
|---|---|---|---|
| |||
...by using .stringof, can determine if a tuple element is a string literal or a... | |||
January 07, 2024 Issues » [Issue 24321] New: 'need this' when accessing a mixin via an alias tuple | |||
|---|---|---|---|
| |||
...when accessing a mixin via an alias tuple
Product: D
Version: D2
Hardware: All
OS... | |||
January 07, 2024 General » Re: We are forking D | |||
|---|---|---|---|
| |||
...of having a template take the generated tuple and modifying it as it sees fit... | |||
January 06, 2024 General » Re: We are forking D | |||
|---|---|---|---|
| |||
...I'd showcase what the string interpolation tuple DIP can do, which currently compiles with... | |||
January 05, 2024 General » Re: Named Arguments Status Update | |||
|---|---|---|---|
| |||
...tuple, as the name will be assigned only to the first element of the tuple... | |||
January 05, 2024 General » Named Arguments Status Update | |||
|---|---|---|---|
| |||
...been seen before? ## Tuple parameters You currently can't assign a tuple parameter by name... | |||
Copyright © 1999-2021 by the D Language Foundation