Search

January 19, 2022
Learn »
Premature optimization. ;-)  There's nothing wrong with allocating an array.

If you're worried about...
January 19, 2022
Learn »
On 1/19/22 14:33, Ali Çehreli wrote:

> Random rnd;
>
> shared static this() {
>    rnd...
January 19, 2022
Learn »
...not use a struct or std.typecons.Tuple instead?
auto randomTuple() {
  return [ randomValue(), randomValue() ];
}

void...
January 19, 2022
Learn »
Why can't you just use a loop to initialize it?

	uint[][] createBoolMatrix(size_t...
January 19, 2022
Learn »
oh. that randomShuffle was unnecessary ;-)
January 19, 2022
Learn »
so I have this code below, that creates an array of tuples.

but instead of...
January 18, 2022
General »
...Fake function from which to extract parameter tuple.
    void locusFunc(string file = __FILE__, size_t...
January 16, 2022
General »
...the value of the unit type, 0-tuple, or whatever. Zero type is different. Timon...
January 13, 2022
Issues »
...is.

---
alias Tuple(T...) = T;

void foo()
{
    Tuple!(int, int) tup;
    cast(Tuple!(int, int...
January 12, 2022
Learn »
...094.

`std.typecons.Tuple` does it much differently. It declares the tuple as an alias...
52 53 54 55 56 57 58 59 60 61 62 63
Next ›   Last »