October 04, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
...low level operator implemented by the compiler. Swap is primative enough to have an unambiguous... | |||
October 04, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
Reply to Gregor, swap!(byte)(a, b) swap!(byte[5])(a, b) | |||
October 04, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
On Wed, Oct 03, 2007 at 06:25:08PM -0700, Gregor Richards wrote: And rather... | |||
October 04, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
Gregor Richards Wrote: I was just going to mention that; you beat me to it! | |||
October 04, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
For the ridiculously-insane:
void swap(T)(ref T a, ref T b)
{
synchronized {
// this... | |||
October 04, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
...gets bigger you start to prefer decomposing swap into swaps of individual members rather than... | |||
October 03, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
...simple template such this sufficient?
template swap(TYPE)
{
void swap(ref TYPE a, ref TYPE... | |||
October 03, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
...much of a need is there for swap in a reference-based language like D... | |||
October 03, 2007 General » Re: Ideas from the Chapel language (swap) | |||
|---|---|---|---|
| |||
...swap is very useful especially in exception safe programming. I would like to see swap... | |||
October 03, 2007 General » Ideas from the Chapel language | |||
|---|---|---|---|
| |||
...from Python) - Chap. 11.5 page 65, swap operator (useful but probably not enough to... | |||
Copyright © 1999-2021 by the D Language Foundation