Optional monitors suggestion

Yuriy via Digitalmars-d digitalmars-d at puremagic.com
Wed May 14 05:24:24 PDT 2014


On Wednesday, 14 May 2014 at 11:14:47 UTC, bearophile wrote:
> I suggest a name like "@monitor". The is no need for the 
> underscores.
Done.

> A more tidy design could require the @monitor in all classes 
> that inherit from a @monitor-annotated class. But this also 
> looks a little overkill. So let's hear what other people think 
> about this.
It should be easy to implement, but i'm not sure if it will be 
handy. Monitors are not something that affects children behavior 
too much. So changing a superclass to be @monitored should not 
require updating subclasses. IMHO.


More information about the Digitalmars-d mailing list