[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: breaking up long string literals
- From: "Nick Trout" <nick@...>
- Date: Thu, 26 Jun 2003 19:15:08 -0700
> > data =
> > "\000\020\005\123\ ... \233\245\255\123\234\142"
> > "\000\020\005\123\ ... \233\245\255\123\234\142"
> > ...
> > "\000\020\005\123\ ... \233\245"
>
>
> data =
> "\000\020\005\123\ ... \233\245\255\123\234\142" ..
> "\000\020\005\123\ ... \233\245\255\123\234\142" ..
> ...
> "\000\020\005\123\ ... \233\245"
>
>
> .. concatenate.
Old habits die hard. Try the following which I think will be much more
efficient:
String = table.concat{
"\000\020\005\123\ ... \233\245\255\123\234\142" ,
"\000\020\005\123\ ... \233\245\255\123\234\142" ,
...
"\000\020\005\123\ ... \233\245"
}
http://lua-users.org/wiki/TableLibraryTutorial