How to delete dynamic array ?

Kagamin spam at here.lot
Fri Mar 19 19:43:00 UTC 2021


On Thursday, 18 March 2021 at 17:57:30 UTC, Patrick Schluter 
wrote:
> 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.

I think they are arrays alright. What's missing is expression of 
ownership, because D follows traditional language design 
approach, and traditionally ownership wasn't expressed in 
language and was done by convention.


More information about the Digitalmars-d-learn mailing list