On Tuesday, 15 April 2025 at 21:06:30 UTC, WhatMeWorry wrote:
I had assumed that ref keyword negated the use of * and & operators but when I try to use it, DMD is saying "only parameters, functions and `foreach` declarations can be `ref`". Fair enough. I thought that the * and & operator was for when interfacing with C/C++ code. Since this is entirely in D code, I thought there might be other options.

Nope, you're not missing anything. Using pointers is totally normal and idiomatic in D.

Reply via email to