January 26, 2009 General » Re: ref returns and properties | |||
|---|---|---|---|
| |||
...set I can't implement a nothrow swap, which kinda bends me out of shape... | |||
January 26, 2009 General » Re: ref returns and properties | |||
|---|---|---|---|
| |||
...to call a.swap(b), though it seems weird that a.swap(b) couldn't... | |||
January 26, 2009 General » Re: ref returns and properties | |||
|---|---|---|---|
| |||
...Sorting hinges on swap, and with properties you can't ever swap without risking to... | |||
January 26, 2009 General » Re: ref returns and properties | |||
|---|---|---|---|
| |||
...choice, x with head, and foo with swap. If head is implemented as a property... | |||
January 25, 2009 General » Re: ref returns and properties | |||
|---|---|---|---|
| |||
...implemented as acquire from a copy, and swap can be implemented by calls to acquire... | |||
January 25, 2009 General » Re: ref returns and properties | |||
|---|---|---|---|
| |||
...value) { ... }
void move(ref T dst) { ... }
void swap(ref T rhs) { ... }
}
}
Of... | |||
January 25, 2009 General » ref returns and properties | |||
|---|---|---|---|
| |||
...move and swap. void move(ref T src, ref T dst); void swap(ref T... | |||
January 25, 2009 General » Re: range and algorithm-related stuff | |||
|---|---|---|---|
| |||
...that don't operate on ranges inside std.algorithm, such as move and swap. Andrei | |||
January 10, 2009 Learn » Re: std.random | |||
|---|---|---|---|
| |||
...value that belongs to [0, len)
--len;
swap(array[offset], array[len]);
array.length = len... | |||
January 07, 2009 General » Re: meaning of 64bit: not only large memory, but large atomic integer | |||
|---|---|---|---|
| |||
...bit systems the double wide Compare and Swap operation is availible, which allows you to... | |||
Copyright © 1999-2021 by the D Language Foundation