It's important to understand that [] is just a practical syntax for a fat pointer.
Thinking of [] just as a fancy pointer helps imho to clarify that the pointed to memory nature is independant of the pointer itself.
Patrick Schluter via Digitalmars-d-learn Thu, 18 Mar 2021 11:00:29 -0700
It's important to understand that [] is just a practical syntax for a fat pointer.
Thinking of [] just as a fancy pointer helps imho to clarify that the pointed to memory nature is independant of the pointer itself.