You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although slicing syntax uses 1 based indexing for use convenience, it allows the user to specify 0 as an index, so foo2 and foo5 below compiles without any issues:
Although slicing syntax uses 1 based indexing for use convenience, it allows the user to specify 0 as an index, so
foo2
andfoo5
below compiles without any issues:Not a big deal but it should disallow this and raise a compilation error such as:
Slice index cannot be zero
The text was updated successfully, but these errors were encountered: