January 27, 2007 General » Re: Good demo for showing benefits of parallelism | |||
|---|---|---|---|
| |||
...is to use a critical section to swap pointers or something else that can't... | |||
January 23, 2007 General » Re: Big problem with Small programs | |||
|---|---|---|---|
| |||
...DISPOSITION)4, FILE_SHARE.READ);
// when we swap the arguments by mistake
CreateFile("filename", FILE... | |||
January 11, 2007 GDC » Re: top 8 entry from grpof of my app :-( | |||
|---|---|---|---|
| |||
How much free RAM/swap do you have before starting the application? It looks like... | |||
January 09, 2007 General » Re: suggested improvements to D | |||
|---|---|---|---|
| |||
...been pointed out, you can write a swap function for this. Actually, what I'd... | |||
January 09, 2007 General » Re: suggested improvements to D (Swap Operator) | |||
|---|---|---|---|
| |||
Warren D Smith Wrote: A few simpler symbols: :: I think this is a good symbol... | |||
January 09, 2007 General » Re: suggested improvements to D | |||
|---|---|---|---|
| |||
[snipped suggestions] 'swap' can easily be done with a function template: void swap(T) (inout... | |||
December 21, 2006 Announce » Re: DMD 0.177 release [Length in slice expressions] | |||
|---|---|---|---|
| |||
...a > 0) { ... }
if ($a == $b) { ... }
swap(a[0], a[$ - 1]); // swap first and last element... | |||
December 15, 2006 Announce » Re: DMD 0.177 release | |||
|---|---|---|---|
| |||
...classes too. If I do this:
void Swap(inout T a, inout T b)
{
T... | |||
November 28, 2006 General » Re: scope + destructor with Exception parameter for RAII | |||
|---|---|---|---|
| |||
...could be vary handy to have this ability to swap out one exception for another. | |||
November 12, 2006 Learn » Re: Template design with required type parameters? | |||
|---|---|---|---|
| |||
...T> instead.
>
> if (items[prevIndex] > items[i]) {
> swap(items, prevIndex, i);
> needsMoreSorting = true;
> }
>
> }
> }
> return items... | |||
Copyright © 1999-2021 by the D Language Foundation