Обсуждение: array index access outside range

Поиск
Список
Период
Сортировка

array index access outside range

От
Achilleas Mantzios
Дата:
Hello list,
Let's suppose that we have an inteher array "parents"
select parents from machdefs where defid=888;
{1,2,3}
Currently accessing parents[0] returns a null, which is reasonable,
and i am thinking of relying on this assumption.

The question is, will it be safe to do that?
Is there any thoughts/needs/discussions of changing this behaviour in a future version
thus breaking my program?

Thanx a lot
-- 
Achilleas Mantzios