values = null;

and it seems it works great. But, i don't know how correct is this... I was expecting to have a clear() method on array.

Makes sense to me! Looks like the technique you described is explained here: http://ddili.org/ders/d.en/null_is.html

Good find, thanks for sharing!

Reply via email to