September 09, 2022 Learn » Validate static asserts | |||
|---|---|---|---|
| |||
...of `static assert`:
```d
auto check()
{
return tuple(false, // check result ('false' is just for... | |||
September 08, 2022 Issues » [Issue 8577] static assert is triggered after tuple bounds check | |||
|---|---|---|---|
| |||
...the code yields: onlineapp.d(2): Error: tuple index 1 exceeds 1 onlineapp.d(7... | |||
September 07, 2022 Learn » Storing a lambda alongside type-erased data | |||
|---|---|---|---|
| |||
...nothrow pure {
// Thank you, Tuple! :)
alias Data = Tuple!Args;
// Place the tuple of arguments
//
// BUG... | |||
September 06, 2022 General » Load dynamic libraries with no hand-written bindings! | |||
|---|---|---|---|
| |||
...traits;
import core.sys.windows.windows;
struct Tuple(_FuncType, string _Name) {
alias FuncType = _FuncType;
enum... | |||
September 05, 2022 General » Re: Contract error string generation is not implicitly @nogc | |||
|---|---|---|---|
| |||
...mixin NoGcError!("Foo",
SumType!(Tuple!(Foo, int, int),
Tuple!(string),
Tuple!()));
Although "Foo" could be... | |||
September 01, 2022 Learn » Re: Convert array of tuples into array of arrays. | |||
|---|---|---|---|
| |||
...val = "priceDolar"
}
auto makeTestTuple(int i)
{
return tuple!(key, val)((i * 2).to!string,
(double... | |||
August 31, 2022 Learn » Re: Convert array of tuples into array of arrays. | |||
|---|---|---|---|
| |||
...that matches the members of a tuple. Given a tuple with member names "key", "value... | |||
August 31, 2022 Learn » Re: Convert array of tuples into array of arrays. | |||
|---|---|---|---|
| |||
...typecons.Tuple, you can use `[tup.expand]` to make an array from a tuple. If... | |||
August 29, 2022 General » Re: What is the state of @property? | |||
|---|---|---|---|
| |||
...main() {
import std.typecons : tuple;
import std.meta : AliasSeq;
prop = tuple(1, 2.0, "foo... | |||
August 25, 2022 Issues » [Issue 23305] New: Tuple.expand generates garbage values when passed to multiple lazy parameters | |||
|---|---|---|---|
| |||
...d) {
return tuple(d, c, b, a);
}
void main() {
auto r = foo(tuple(3,4... | |||
Copyright © 1999-2021 by the D Language Foundation