November 15 Issues » [Issue 24858] maxIndex but not minIndex sometimes returns the index as an array with a single element | |||
|---|---|---|---|
| |||
...Reserved written by Walter Bright $ dmd -unittest -main -run mi.d 3 2 0 1... | |||
November 15 DIP Ideas » Re: Allow designated initialization of struct | |||
|---|---|---|---|
| |||
...include <stdio.h>
#include <limits.h>
int main()
{
short x = SHRT_MAX;
short div = 1... | |||
November 14 Learn » Re: Avoid subtracting form .length | |||
|---|---|---|---|
| |||
...writeln("a = ", a);
writeln("b = ", b);
}
void main(){
int[] a;
a = iota(2).array;
foo... | |||
November 14 Learn » Re: Avoid subtracting form .length | |||
|---|---|---|---|
| |||
...length .. size] = padding;//*/
sarr.writefln!" %s";
}
void main()
{
int[] arr = iota(5).array;
arr.length... | |||
November 13 Issues » [Issue 24859] New: Relational expression for dynamic arrays with vector elements fails to compile | |||
|---|---|---|---|
| |||
...the following program fails to compile:
---
void main()
{
__vector(int[4])[] a, b;
auto result... | |||
November 13 Issues » [Issue 24856] New: std.array.Appender.ensureAddable can create stale memory references | |||
|---|---|---|---|
| |||
...but no guarantee it always works:
```
void main()
{
import std.array;
import core.memory;
import... | |||
November 12 Learn » Re: Using sets in associative arrays | |||
|---|---|---|---|
| |||
...of sets of integers such as
void main()
{
RedBlackTree!int[int] assoset;
assoset[2] = redBlackTree... | |||
November 11 Issues » [Issue 11986] IFTI type deduction / implicit conversion does not work for null literal | |||
|---|---|---|---|
| |||
...S!T* a, S!T* b) {}
void main()
{
S!int* a;
v(a,null);
}
```
2... | |||
November 11 DIP Development » Re: __rvalue and Move Semantics first draft | |||
|---|---|---|---|
| |||
...crux. - We can already interop with the main C++ lifetime member functions - regular constructors, copy... | |||
November 11 Issues » [Issue 24854] New: An @disabled opAssign is generated when it doesn't need to be @disabled | |||
|---|---|---|---|
| |||
...documented.
In any case, this code
```
void main()
{
import std.traits;
static struct Member
{
@disable... | |||
Copyright © 1999-2021 by the D Language Foundation