clear array

Damian damianroyday at gmail.com
Mon Oct 15 17:33:03 PDT 2012


I know this is a bit of a dumb question and I have searched and 
not
found anything concrete surprisingly :/

Does D have a built-in way to clear arrays dynamic and static?
I don't want to iterate over every element and set a default 
value.

In C++ I would just use memset, I don't know if I should be using
this for D?


More information about the Digitalmars-d-learn mailing list