| 71 | } |
| 72 | |
| 73 | void ValueRef::watch() const { |
| 74 | mgb_assert(m_storage); |
| 75 | storage()->m_watching++; |
| 76 | nr_watched_values++; |
| 77 | storage()->on_watch(); |
| 78 | // TODO: |
| 79 | // imperative::apply(Watch(), this); |
| 80 | } |
| 81 | |
| 82 | void ValueRef::unwatch() const { |
| 83 | mgb_assert(m_storage); |