On Monday, 2 December 2024 at 19:30:06 UTC, Ali Çehreli wrote:
On 12/2/24 11:10 AM, Josh Holtrop wrote:

> This works but requires that ugly .get call rather than just
accessing
> it directly.

'alias this' may help:

  https://dlang.org/spec/struct.html#alias-this

All you need to do is to add the following line to the Volatile template:

  alias get this;

Ali

If I use `alias this` I don't know how I can get `volatileLoad()` to be called.

Reply via email to