clear()

Steven Schveighoffer schveiguy at yahoo.com
Fri Mar 25 12:09:57 PDT 2011


On Fri, 25 Mar 2011 15:10:44 -0400, Dr.Smith <iam at notfar.com> wrote:

> To empty many arrays of various types, rather than:
>
> clear(arr1);
> clear(arr2);
> ...
> clear(arrN);
>
> is there something like:
>
> clear(ALL);

Not sure what this would do.  Clear all arrays?  That isn't possible.

> Also, after "clear(arr)", will "arr ~= value" assign starting from  
> element 0?

Yes.

-Steve


More information about the Digitalmars-d-learn mailing list