On Wednesday, 16 April 2025 at 01:44:33 UTC, Paul Backus wrote:
Nope, you're not missing anything. Using pointers is totally
normal and idiomatic in D.
That said, I try to code under @safe when I can, and let the
compiler guide me clear of a whole class of C-type potential bugs.
Andy
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 fo
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 fo
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