On Sunday, 13 July 2014 at 16:20:12 UTC, Joseph Rushton Wakeling wrote:
I'm guessing the reason it doesn't in this case is because it's all wrapped up in the scoped() template

... no, it's because the private Scoped_store is passed out via the Scoped_payload property.

Anyway, the actual scoped() method itself is templated, so whether it can be @nogc or not obviously depends on its arguments and has to be inferred. The trouble is with the destructor ~this() which is in no way dependent on template parameters, but in calling the destructor of the scoped payload, depends on the payload's own destructor for whether it can be @nogc or not.
  • Re: hap.random: a new r... Joseph Rushton Wakeling via Digitalmars-d-announce
  • Re: hap.random: a new r... Joseph Rushton Wakeling via Digitalmars-d-announce
    • Re: hap.random: a ... Nick Sabalausky via Digitalmars-d-announce
      • Re: hap.random... Joseph Rushton Wakeling via Digitalmars-d-announce
        • Re: hap.ra... bearophile via Digitalmars-d-announce
          • Re: ha... Dicebot via Digitalmars-d-announce
            • R... Joseph Rushton Wakeling via Digitalmars-d-announce
              • ... Dicebot via Digitalmars-d-announce
              • ... Joseph Rushton Wakeling via Digitalmars-d-announce
              • ... Joseph Rushton Wakeling via Digitalmars-d-announce
              • ... Joseph Rushton Wakeling via Digitalmars-d-announce
            • R... Joseph Rushton Wakeling via Digitalmars-d-announce
          • Re: ha... Joseph Rushton Wakeling via Digitalmars-d-announce
            • R... bearophile via Digitalmars-d-announce
              • ... Joseph Rushton Wakeling via Digitalmars-d-announce
    • Re: hap.random: a ... Chris Cain via Digitalmars-d-announce

Reply via email to