lua-users home
lua-l archive

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



On 09/10/2006, at 7:02 PM, askok@dnainternet.net wrote:

print """something $like $this"""

With a string.gsub you can make this work, and actually replace the "print" function to make your new one do exactly what you want. This is the power of Lua.

Personally I'm not sure I want $<something> to be expanded out. Then I have the problem with what if I want a $ in my string.

Anyway, there are lots of nice things Lua might have, but compare the size of Lua to Perl (on Windows):

cygperl5_8.dll - 1248 Kb
perl58.dll - 785 Kb
lua5.1.dll - 208 Kb


- Nick