lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Uz.ytkownik Gunnar Zötl napisa?:


like perls split() or phps explode(). I think this would be a valuable
addition to the core library.

I like Pike solution, in this language you can  simply write

	table = "a,b,c,d" / ","

(offcourse you can use any regexp)

	string = table * ","

etc..


Under lua-4 you can modify engine to allow change tags of string and it so it is possible to extend lua int this way,
but under lua-5 you cannot assign metatable to strings :-(

Andrzej Borsuk

--
     _
    (;[   SPAM?
   \/>)   Prosze; wysy?ac' na moje podstawowe konto
  `ab~^   mailto:root@localhost