August 22, 2022 Learn » Re: typeof(func!0) != typeof(func!0()) | |||
|---|---|---|---|
| |||
...int b; pragma(msg, __traits(getAttributes, b)); // tuple(U().func) pragma(msg, typeof(__traits(getAttributes... | |||
August 20, 2022 General » Re: X macro in D | |||
|---|---|---|---|
| |||
...3;
static immutable varList = [
tuple("id1", "name1"),
tuple("id2", "name2"),
tuple("id3", "name3"),
];
static foreach... | |||
August 19, 2022 Learn » Re: Fixed-size OutBuffer that doesn't call .resize() automatically? (for database page buffers) | |||
|---|---|---|---|
| |||
...padding;
foreach (idx, ref tuple; tuples)
{
buf ~= toBytes(tuple.size);
buf ~= tuple.data;
}
move(buf... | |||
August 19, 2022 Learn » This code completely breaks the compiler: | |||
|---|---|---|---|
| |||
...d
import std.typecons : Tuple;
sadsad executeFunction(Mtypes...)(dstring func, Tuple!(Mtypes) args)
{
static foreach... | |||
August 15, 2022 Learn » Fixed-size OutBuffer that doesn't call .resize() automatically? (for database page buffers) | |||
|---|---|---|---|
| |||
...PageHeader header;
Tuple[] tuples;
ubyte[PAGE_SIZE] buffer;
void insertTuple(Tuple tuple)
{
tuples ~= tuple;
header... | |||
August 14, 2022 Learn » Re: Exercise at end of Ch. 56 of "Programming in D" | |||
|---|---|---|---|
| |||
...toHash() const {
auto tuples = points[].map!(p => tuple(cast()p.x, cast()p.y)).array... | |||
August 13, 2022 Genel » Re: Dizilerde karışık türler | |||
|---|---|---|---|
| |||
...aklıma geldi, belki aradığın Çokuzlu'dur yani Tuple olanağı. Hatta std.variant'da Algebraic vardı... | |||
August 12, 2022 Learn » How to use exceptions | |||
|---|---|---|---|
| |||
...0;
foreach (kv; [
tuple("readConfig1", &readConfig1),
tuple("readConfig2", &readConfig2),
tuple("readConfig3", &readConfig3),
tuple("readConfig4", &readConfig4... | |||
August 01, 2022 Learn » Re: Converting JSONValue to AssociativeArray. | |||
|---|---|---|---|
| |||
...auto aa_data = o
.byKeyValue
.map!(kv => tuple(kv.key, kv.value.str))
.assocArray;
static... | |||
August 01, 2022 Learn » Re: Converting JSONValue to AssociativeArray. | |||
|---|---|---|---|
| |||
...import std.typecons : tuple;
auto aa_data = data.object
.byKeyValue
.map!(kv => tuple(kv.key... | |||
Copyright © 1999-2021 by the D Language Foundation