HuoLanguage / huo

interpreted language written in C
MIT License
212 stars 21 forks source link

Array set index out of bounds #26

Closed TheLoneWolfling closed 8 years ago

TheLoneWolfling commented 8 years ago

If I set an element past the end of an array, should it

  1. Error out
  2. Silently do nothing
  3. Silently append the value to the array
  4. Set all elements between the previous end of the array and the element set to undef.

(Personally? 1 or 4)

incrediblesound commented 8 years ago

I think I like option 4 in this case.

TheLoneWolfling commented 8 years ago

Easy enough to do.