November 22 Learn » Re: Using a tuple as a function parameter | |||
|---|---|---|---|
| |||
...string getOrZeroth(Tuple!(string, string, string) tup, int i)
{
switch (i)
{
static foreach (j; 0... | |||
November 22 Learn » Re: Using a tuple as a function parameter | |||
|---|---|---|---|
| |||
...string getOrZerothT(Tuple!(string, string, string) tup, int i)() pure {
//AliasSeq!(a,b,c) = tup... | |||
November 22 Learn » Re: Using a tuple as a function parameter | |||
|---|---|---|---|
| |||
...a template value parameter instead:
```
string getOrZeroth(int i)(Tuple!(string, string, string) tup)
{
return... | |||
November 22 Learn » Re: Using a tuple as a function parameter | |||
|---|---|---|---|
| |||
...mixed types `auto foo(tuple!(int,bool,float) t,int i)=>t[i];` should and... | |||
November 22 Learn » Using a tuple as a function parameter | |||
|---|---|---|---|
| |||
...string getOrZeroth(Tuple!(string, string, string) tup, int i) pure {
return tup[i] == "" ? tup[0... | |||
November 21 Learn » Re: std.mmfile + std.bitmanip.peek, void[] is not a forward range? | |||
|---|---|---|---|
| |||
...it to convert groups of bytes to int or short or some other integral type... | |||
November 21 Learn » std.mmfile + std.bitmanip.peek, void[] is not a forward range? | |||
|---|---|---|---|
| |||
...same as slicing mmFile below int val = data[offset .. $].peek!int; //data[ offset .. offset + 4... | |||
November 21 Issues » [Issue 24869] Qualifier dropped from return type when AliasSeq is indexed with template argument | |||
|---|---|---|---|
| |||
...int)[i]) get(size_t i)() const;
pragma(msg, typeof(get!0)); // const ref int()
-- | |||
November 21 Issues » [Issue 24869] Qualifier dropped from return type when AliasSeq is indexed with template argument | |||
|---|---|---|---|
| |||
...int)`.
It's weird as the function prototype type is OK:
ref const(AliasSeq!(int... | |||
November 21 Genel » Show Helper | |||
|---|---|---|---|
| |||
...9..$ - 2];
void show(string f = __FILE__,
int line = __LINE__, T)(T t) {
import std... | |||
Copyright © 1999-2021 by the D Language Foundation