On 3/9/18 2:33 PM, WhatMeWorry wrote:
On Friday, 9 March 2018 at 10:42:47 UTC, Kagamin wrote:
To make a struct noncopyable, add @disable this(this); to it, then
compiler will give an error on an attempt to copy it.
I tried the @disable this(this); but now it doesn't even compile?
Use
On Friday, March 09, 2018 19:33:26 WhatMeWorry via Digitalmars-d-learn
wrote:
> On Friday, 9 March 2018 at 10:42:47 UTC, Kagamin wrote:
> > To make a struct noncopyable, add @disable this(this); to it,
> > then compiler will give an error on an attempt to copy it.
>
> I tried the @disable
On Friday, 9 March 2018 at 10:42:47 UTC, Kagamin wrote:
To make a struct noncopyable, add @disable this(this); to it,
then compiler will give an error on an attempt to copy it.
I tried the @disable this(this); but now it doesn't even compile?
Error: template std.concurrency.spawn cannot
To make a struct noncopyable, add @disable this(this); to it,
then compiler will give an error on an attempt to copy it.
spawn doesn't infer `ref` storage class and copies eventBuffer by
value.
I read where shared classes have not been implemented yet. So I'm
using
just a struct e below: But the output below is showing that
sharing is
not happening between Struct in main() and the various spawned
threads.
I'm I doing something wrong?
creating queue in EventBuffer constructor