May 28 General » Re: Printing a range of ranges drains them | |||
|---|---|---|---|
| |||
...r, r]; import std.conv : text; auto str = arr.text; assert(!arr.empty); foreach(n... | |||
May 28 Issues » [Issue 24570] printing a range of ranges consumes sub-ranges | |||
|---|---|---|---|
| |||
...assert(!arr.empty); import std.conv : text; auto str = arr.text; // "€₺₽" assert(!arr.empty); } ``` -- | |||
May 28 General » Re: Printing a range of ranges drains them | |||
|---|---|---|---|
| |||
...r.empty); import std.conv : text; auto str = r.text; // "€₺₽" assert(r.empty); } ``` Okay... | |||
May 27 General » Re: Printing a range of ranges drains them | |||
|---|---|---|---|
| |||
...strings str;
auto s = "123".dup;
str = [s, s, s];
str.writefln!form;
str.writefln... | |||
May 25 Issues » [Issue 24566] New: condition that starts with runtime value and uses compile time array does not short circuit | |||
|---|---|---|---|
| |||
...enum str = "a";
if(a && str.length > 1 && str[1] == 'a') {} // ok
if(b && str... | |||
May 16 DIP Ideas » Re: Inferring static array size | |||
|---|---|---|---|
| |||
...add another construct: ```d immutable(char)[$+1] str = "Hello"; ``` The `$+1` is core syntax. There... | |||
April 26 General » Re: Object.toString, toHash, opCmp, opEquals | |||
|---|---|---|---|
| |||
...safe {
Context context;
char[] str = context.acquire();
char[] var = test(str);
writeln(var); // Should be... | |||
April 21 Issues » [Issue 24516] New: qualifiers lost when tupleof is aliased | |||
|---|---|---|---|
| |||
...struct S
{
int i;
int* ptr;
string str;
}
static assert(is(typeof(S.tupleof) == AliasSeq... | |||
Copyright © 1999-2021 by the D Language Foundation