May 03, 2009 Issues » [Issue 2928] New: Swap order of paramaters for std.range's "take" | |||
|---|---|---|---|
| |||
...issues/show_bug.cgi?id=2928
Summary: Swap order of paramaters for std.range's... | |||
April 30, 2009 General » Re: D2 Multithreading Architecture | |||
|---|---|---|---|
| |||
...your previous proposal of scope constraints: void swap(scope ref int* a, scope ref int... | |||
April 30, 2009 General » Re: D2 Multithreading Architecture | |||
|---|---|---|---|
| |||
...you'd get something alike: swap(b,c); // Error, 'swap' wants c (shared Object c... | |||
April 30, 2009 General » Re: D2 Multithreading Architecture | |||
|---|---|---|---|
| |||
...Object c; swap(a,b); // Okay swap(b,c); // Error, template instantiation swap(local object... | |||
April 30, 2009 General » Re: D2 Multithreading Architecture | |||
|---|---|---|---|
| |||
...adding scope constrains back then. To implement swap safely, you need to know that the... | |||
April 30, 2009 General » Re: D2 Multithreading Architecture | |||
|---|---|---|---|
| |||
...to swap two objects of an arbitrary non-const type, I was trying to swap... | |||
April 29, 2009 General » Re: D2 Multithreading Architecture | |||
|---|---|---|---|
| |||
...a limitation. If someone can't call swap(n.a, n.b) for an arbitrary... | |||
April 29, 2009 General » Re: D2 Multithreading Architecture | |||
|---|---|---|---|
| |||
...few exceptions, see scope rule 6) to swap them. However, assigning to anywhere off the... | |||
April 29, 2009 General » Re: D2 Multithreading Architecture (repost without utf-8) | |||
|---|---|---|---|
| |||
...n = n.next;
auto n2 = n;
swap(n, n2);
swap(n, n.next); // Error: Cannot... | |||
April 28, 2009 General » Re: D2 Multithreading Architecture | |||
|---|---|---|---|
| |||
...n = n.next;
auto n2 = n;
swap(n, n2);
swap(n, n.next); // Error: Cannot... | |||
Copyright © 1999-2021 by the D Language Foundation