On 07/03/2024 1:28 PM, Carl Sturtivant wrote:
On Wednesday, 6 March 2024 at 23:45:00 UTC, H. S. Teoh wrote:
In D, there's a pointer to the vtable and another pointer to a Monitor object (used for synchronized methods).  There was talk about getting rid of the Monitor field years ago, but nothing has happened yet.

Very interesting: is the monitor field ever touched by compiled D code at any point nowadays? Or is it just vestigial?

Yes its opt-in. https://dlang.org/spec/statement.html#synchronized-statement

  • Hidden members o... Carl Sturtivant via Digitalmars-d-learn
    • Re: Hidden ... H. S. Teoh via Digitalmars-d-learn
    • Re: Hidden ... Carl Sturtivant via Digitalmars-d-learn
      • Re: Hid... kinke via Digitalmars-d-learn
      • Re: Hid... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
        • Re:... cc via Digitalmars-d-learn
        • Re:... Carl Sturtivant via Digitalmars-d-learn

Reply via email to