Array List object?

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 27 01:39:58 PST 2015


Gan:

> //Initializing the array
> tiles = new SBTile[](0);

This is often useless.


> //Clearing the array
> tiles = [];

This doesn't "clear" the array, it rebinds it to a null pointer.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list