| Thread overview | |||||
|---|---|---|---|---|---|
|
August 26, 2013 bug or feature? shared objects and tuples | ||||
|---|---|---|---|---|
| ||||
It is impossible to pack a structure with shared object into tuple.
```
import std.concurrency;
import std.typecons;
class Foo {}
struct A {
shared Foo foo;
}
void main() {
auto a = tuple(new shared Foo); // ОК
auto b = tuple(A()); // Error: static assert "unable to format shared objects"
}
```
| ||||
August 26, 2013 Re: bug or feature? shared objects and tuples | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jack Applegame | On 8/27/13, Jack Applegame <japplegame@gmail.com> wrote: > It is impossible to pack a structure with shared object into tuple. Bug. Please file it to bugzilla: http://d.puremagic.com/issues/enter_bug.cgi?product=D Thanks! | |||
August 26, 2013 Re: bug or feature? shared objects and tuples | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | On Monday, 26 August 2013 at 23:04:24 UTC, Andrej Mitrovic wrote: > Bug. Please file it to bugzilla: > http://d.puremagic.com/issues/enter_bug.cgi?product=D > > Thanks! http://d.puremagic.com/issues/show_bug.cgi?id=10907 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply