Search

October 04, 2007
General »
...low level operator implemented by the compiler. Swap is primative enough to have an unambiguous...
October 04, 2007
General »
Reply to Gregor,

swap!(byte)(a, b)
swap!(byte[5])(a, b)

October 04, 2007
General »
On Wed, Oct 03, 2007 at 06:25:08PM -0700, Gregor Richards wrote:

And rather...
October 04, 2007
General »
Gregor Richards Wrote:

I was just going to mention that; you beat me to it!
October 04, 2007
General »
For the ridiculously-insane:

void swap(T)(ref T a, ref T b)
{
    synchronized {
        // this...
October 04, 2007
General »
...gets bigger you start
to prefer decomposing swap into swaps of individual members rather than...
October 03, 2007
General »
...simple template such this sufficient?

template swap(TYPE)
{
    void swap(ref TYPE a, ref TYPE...
October 03, 2007
General »
...much of a need is there for swap in a reference-based language like D...
October 03, 2007
General »
...swap is very useful especially in exception safe programming.
I would like to see swap...
October 03, 2007
General »
...from Python)
- Chap. 11.5 page 65, swap operator (useful but probably not enough to...
146 147 148 149 150 151 152 153 154 155 156
Next ›   Last »