Having a strange issue with std.net.curl.HTTP as a struct dependency
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jul 13 00:21:19 PDT 2017
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
More information about the Digitalmars-d-learn
mailing list