commit | 2b0c285ea552d2ce116efb85af749d69ebbddb59 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tom@tromey.com> | Fri Jan 14 08:29:42 2022 -0700 |
committer | Tom Tromey <tom@tromey.com> | Tue Jan 18 10:01:16 2022 -0700 |
tree | 8abbac61485de6eafa837879592ee4fc2930d826 | |
parent | 49a9cf56ffd49539234e6cb33a5d1d19ba4e2388 [diff] |
Split event_location into subclasses event_location uses the old C-style discriminated union approach. However, it's better to use subclassing, as this makes the code clearer and removes some chances for error. This also enables future cleanups to avoid manual memory management and copies.