Thread: Array Slicing
View Single Post
  #14  
Old 11-11-2009, 03:02 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
In Graal script we tried to prevent any confusion. Operators only have one meaning, that's why there is @ and + for strings and numbers, instead of using + for both. The array operator should also stay like it is, the tiles[x,y] syntax can already be confusing enough.
The substring(-1) extension could be interesting, although I'm not sure if it would break some scripts that accidently go below 0 for the index?
Reply With Quote