July 13, 2017 Re: Having a strange issue with std.net.curl.HTTP as a struct dependency | ||||
|---|---|---|---|---|
| ||||
Posted in reply to NoBigDeal256 | On 07/09/2017 05:10 PM, NoBigDeal256 wrote:
> HTTP http;
For what it's worth, defining it as __gshared seems to be a workaround:
__gshared HTTP http;
Ali
| |||
July 13, 2017 Re: Having a strange issue with std.net.curl.HTTP as a struct dependency | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On 07/13/2017 12:01 AM, Ali Çehreli wrote:
> On 07/09/2017 05:10 PM, NoBigDeal256 wrote:
>
>> HTTP http;
>
> For what it's worth, defining it as __gshared seems to be a workaround:
>
> __gshared HTTP http;
>
I sometimes amuse myself. What use is that? :o)
What I must have meant is you can have a __gshared array of those and pass pointers to elements to constructors:
__gshared HTTP[] https;
struct ThingA {
HTTP *http;
this(HTTP *http) {
// ...
Not easy but a workaround...
Ali
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply