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

Reply via email to