shared: Has anyone used it without a lot of pain?

Dukc via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 5 05:34:34 PDT 2017


On Tuesday, 4 April 2017 at 21:56:37 UTC, Atila Neves wrote:
> The reason why what I was trying to do isn't possible is 
> obvious in hindsight, but it's still annoying. So either code 
> duplication or mixins, huh?

template flag parameter for the struct for being shared or not? I 
may well be missing something. But in hindsight it could work.

Of course, you would still have to type the shared flag 
explicitly when instantiating which is less than desirable.


More information about the Digitalmars-d mailing list