Remove array element within function

Mike Parker aldacron at gmail.com
Mon Jul 5 13:18:55 UTC 2021


On Monday, 5 July 2021 at 13:10:55 UTC, Rekel wrote:

> Am I the only one slightly unamused by how arrays/ranges work? 
> They keep backfiring on me, or require weird additions other 
> languages wouldn't require such as manually changing .length, 
> or worrying about what operation returns a copy etc. (Kind of 
> jealous of java's ease here)

D's arrays are friggin' awesome. I don't think they're any more 
difficult than in Java.

In what situations do you need to manually change the length? 
Where do you worry about copies? It's possible there's something 
you're overlooking.


More information about the Digitalmars-d-learn mailing list