Yuriy:

No syntax for that. The __monitor is not present by default anywhere. If you need it, you need to define one.

class B
{
    void* __monitor;

What kind of clear error messages do you receive if you write:

class B {
    void* _monitor;

Or:

class B {
    size_t __monitor;


This isn't C++, in D land we prefer features to be safe and clean, the D compiler is designed to have clean syntax, to give nice errors, and remove the probability of invisible mistakes as much as possible. An annotation like @no_monitor (or its opposite @monitor if we don't want __monitor on default) seems the safe and clean way to ask for this in D.

Bye,
bearophile

Reply via email to