listed subscripting

new topic     » topic index » view thread      » older message » newer message

variable={"ABCDEFGHIJKLMNOPQRSTUVWXYZ"}
puts(1,variable[8,12,16,20])
--is the same as
puts(1,{variable[8],variable[12],variable[16],variable[20]})

just an idea, real easy to implement I think
even allow

? variable[8,12,16,20..26] or more complex subscriptings
--same as
? {variable[8],variable[12],variable[16],variable[20..26]}

use if for swizzled assigns as well, man I would really love this

variable[1,5,9,13]={1,2,3,4}
--same as
variable[1]=1
variable[5]=2
variable[9]=3
variable[13]=4

much cleaner code, I like it

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu