February 04, 2022 Issues » [Issue 22736] Add destructuring bind for std.typecons.Tuple tuples | |||
|---|---|---|---|
| |||
...specify the names when constructing the tuple? -> Sometimes, the tuple is constructed in more than... | |||
February 04, 2022 Issues » [Issue 22736] New: Add destructuring bind for std.typecons.Tuple tuples | |||
|---|---|---|---|
| |||
...ref T tuple)
if (isTuple!T && is(typeof(fun(tuple.expand))))
{
return fun(tuple.expand... | |||
January 30, 2022 Genel » Re: GBS-5: Bir işlev içindeki yapı(sihir) | |||
|---|---|---|---|
| |||
...stdio;
auto foo() {
import std.typecons : tuple;
return tuple!("x", "y")(1, 2);
}
void main... | |||
January 30, 2022 Genel » GBS-5: Bir işlev içindeki yapı(sihir) | |||
|---|---|---|---|
| |||
...ile birlikte geliştirirsek; bu yapı (struct), adeta Tuple ile yarışırcasına D programlama dilinde şu şekilde... | |||
January 27, 2022 General » Re: Generic structural recursion | |||
|---|---|---|---|
| |||
...a struct type and gives you > a tuple of getters I've done something similar... | |||
January 27, 2022 Learn » Re: Template sequence parameter and default value | |||
|---|---|---|---|
| |||
...prints this: ``` 1 tuple(module onlineapp) 2 tuple(module onlineapp) 3 tuple(module onlineapp, module... | |||
January 26, 2022 General » Re: Generic structural recursion | |||
|---|---|---|---|
| |||
...a struct type and gives you a tuple of getters (each taking a struct and... | |||
January 25, 2022 Learn » How to create a function that behaves like std.stdio.writeln but prepends output with __FILE__:_LINE_ | |||
|---|---|---|---|
| |||
...LINE__)
{
writeln(file,":",line," ",t.expand);
}
void main()
{
f("hello ", 123);
g(tuple("hello ",123));
} | |||
January 22, 2022 Learn » Re: forward tuple arg to local variable + dtor | |||
|---|---|---|---|
| |||
Thanks, second options is what I need. (In my case forwarding is more complex because... | |||
January 22, 2022 Learn » Re: forward tuple arg to local variable + dtor | |||
|---|---|---|---|
| |||
On Saturday, 22 January 2022 at 18:00:58 UTC, vit wrote: Scratch the previous... | |||
Copyright © 1999-2021 by the D Language Foundation