In classA, add "watchable" to the property to be watched. In classB, add "watch classA { propertyA { DoStuffHere() } propertyB { DoStuffHere() } delete { DoStuffWhenClassADeleted() };
Example
class Foo { int box; property int box { watchable set { box = value; } get { return box; } }; }
class Bar { watch foo { box { PrintLn(“box changed!”); } delete { PrintLn(“foo is gone!”); } }; }