Page MenuHomeFeedback Tracker

Select command - array error detection broken
Closed, ResolvedPublic

Description

The select command (https://community.bistudio.com/wiki/select) doesn't detect an error when selecting an element equal to the size of the array (a non-existant element).

Details

Legacy ID
2894174119
Severity
None
Resolution
Won't Fix
Reproducibility
Always
Category
Scripting
Steps To Reproduce

a = [1,2,3];
//index: 0 1 2

b = a select 2; select last index: NO ERROR
c = a select 3;
select non-existant index: NO ERROR (should be an error)
d = a select 4;// select non-existant index: ERROR

Event Timeline

Waffle_SS edited Steps To Reproduce. (Show Details)Jul 3 2015, 3:16 AM
Waffle_SS set Category to Scripting.
Waffle_SS set Reproducibility to Always.
Waffle_SS set Severity to None.
Waffle_SS set Resolution to Won't Fix.
Waffle_SS set Legacy ID to 2894174119.May 8 2016, 12:19 PM

no one will ever change this behaviour, regardless if it is by design or a bug. Resolving as wont fix