On Mon, May 09, 2022 at 04:48:11PM +0000, Vladimir Panteleev via Digitalmars-d-announce wrote: > On Monday, 9 May 2022 at 16:37:15 UTC, H. S. Teoh wrote: > > Why is memory protection the only way to implement write barriers in > > D? > > Well, it's the only way I know of without making it a major > backwards-incompatible change. The main restriction in this area is > that it must continue working with code written in other languages, > and generally not affect the ABI drastically.
Ah, gotcha. Yeah, I don't think such an approach would be fruitful (it was worth a shot, though!). If D were ever to get write barriers, they'd have to be in some other form, probably more intrusive in terms of backwards-compatibility and ABI. T -- Curiosity kills the cat. Moral: don't be the cat.
