October 10, 2007 General » Re: Swap operator ? | |||
|---|---|---|---|
| |||
i use:
void swap(T)(ref T a, ref T b) {
T t = a;
a... | |||
October 10, 2007 General » Swap operator ? | |||
|---|---|---|---|
| |||
Not really nessesary, but nice to have... int a = 1; int b = 2; a <=> b... | |||
October 09, 2007 General » Re: Debugging memory leak. | |||
|---|---|---|---|
| |||
...kill it because it is trying to swap my machine to death). I can make... | |||
October 08, 2007 Announce » Re: DMD 1.022 and 2.005 releases | |||
|---|---|---|---|
| |||
...for me. Not to mention having to swap gdb for ddbg or whatever it is... | |||
October 06, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
...See C++, there are much of swap functions, and much of nothrowing problem in swap. | |||
October 04, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
...size of structure where swap members becomes more efficient than swap via a temporary is... | |||
October 04, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
...three lines in a template function called "swap". If the compiler can recognize that's... | |||
October 04, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
Uh? If 'swap(a,b)' is ok, then you put swap as a function call... | |||
October 04, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
...It is whole lot easy to recognise "swap(a,b)" or even "a<->b" as... | |||
October 04, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
...couldn't recognize that this is a swap operation: tmp = a; a = b; b = tmp... | |||
Copyright © 1999-2021 by the D Language Foundation