Re: Pointer vs Ref

2025-06-11 Thread confuzzled via Digitalmars-d-learn
On 6/10/25 2:17 AM, Ali Çehreli wrote: On 6/9/25 12:24 AM, confuzzled wrote: > Is it possible to accomplish the following using ref instead of > pointers? Your example is a good case for a pointer. Was there a reason why a reference should be used? Just exploring the realm of possibilities

Re: Pointer vs Ref

2025-06-11 Thread confuzzled via Digitalmars-d-learn
On 6/9/25 11:16 PM, monkyyy wrote: On Monday, 9 June 2025 at 07:24:41 UTC, confuzzled wrote: Hello community, Is it possible to accomplish the following using ref instead of pointers? If so, please share an example. The hard part is the `foreach` the simple answer is throw a ref before `v