July 04, 2015 Learn » Re: turning an array of structs into a struct of arrays | |||
|---|---|---|---|
| |||
...N]);
static __gentypes() {
string ret;
foreach (I, TYPE; typeof(Struct.tupleof))
ret ~= "align(16) typeof... | |||
June 22, 2015 General » Re: Future(s) for D. | |||
|---|---|---|---|
| |||
...results.oneValue!string;
ret = val.to!T;
}
catch { ret = default_value; }
return ret;
}
private void... | |||
June 08, 2015 Learn » Re: using D without GC | |||
|---|---|---|---|
| |||
...basically what a slice is internally.
auto ret = calloc(count, T.sizeof)[0..(count*T... | |||
June 07, 2015 Learn » Re: using D without GC | |||
|---|---|---|---|
| |||
...arr; }
auto ret = Wrap( Impl( count, calloc( count, T.sizeof ) ) ).arr;
enforce( ret.ptr !is... | |||
June 05, 2015 Learn » Re: string to char array? | |||
|---|---|---|---|
| |||
...dword ptr [rsi + 8], 2 pop rax ret .LBB0_4: mov edi, 55 mov esi... | |||
May 31, 2015 General » Re: As discussed in DConf2015: Python-like keyword arguments | |||
|---|---|---|---|
| |||
...stringof, n));
}
}
}
}
ret ~= " );";
return ret;
}
static auto opCall(ARGS...)(ARGS args) {
enum ret = generateCallerString!ARGS... | |||
May 29, 2015 General » Re: As discussed in DConf2015: Python-like keyword arguments | |||
|---|---|---|---|
| |||
...ret = Tuple!(staticMap!(GetTypeAndName, T))();
foreach (I, arg; inputs)
{
ret[I] = arg.args;
}
return ret... | |||
May 29, 2015 Issues » [Issue 9279] [REG2.055/2.063] Static array return value implicitly converted to immutable dynamic array | |||
|---|---|---|---|
| |||
...typeof({
char[2] b()() { char[2] ret; return ret; }
string a() { return b(); }
})));
//////////////////////////////////////////////
compiles in... | |||
May 26, 2015 Issues » [Issue 14621] New: ICE: Assertion failure: 'global.gaggedErrors || global.errors' on line 752 in file 'statement.c' | |||
|---|---|---|---|
| |||
...array;
alias array this;
template erroneousTemplateInstantiation()
{
static assert(false);
}
void foo()
{
S ret;
ret[] = erroneousTemplateInstantiation!();
}
}
-- | |||
May 25, 2015 General » Re: DIP66 1.2 (Multiple) alias this. Continuation of work. | |||
|---|---|---|---|
| |||
...i;
alias i this;
}
auto ret = foo!Bar;
assert(ret == 2); //exactly the second function... | |||
Copyright © 1999-2021 by the D Language Foundation