Is there anyway to Deify the following code snippet?

H. S. Teoh hsteoh at qfbox.info
Wed Apr 16 14:48:04 UTC 2025


On Wed, Apr 16, 2025 at 04:23:43AM +0000, Andy Valencia via Digitalmars-d-learn wrote:
> 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.
[...]

Pointers can be used perfectly fine in @safe. Just not unsafe operations
like pointer arithmetic.


T

-- 
Notwithstanding the eloquent discontent that you have just respectfully expressed at length against my verbal capabilities, I am afraid that I must unfortunately bring it to your attention that I am, in fact, NOT verbose.


More information about the Digitalmars-d-learn mailing list