Is there anyway to Deify the following code snippet?

Paul Backus snarwin at gmail.com
Wed Apr 16 01:44:33 UTC 2025


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.


More information about the Digitalmars-d-learn mailing list