Lua strings

Forum: Programming and Scripting
Topic: Lua strings
started by: mikshaw

Posted by mikshaw on Jan. 23 2007,20:07
Reading through the Lua 5.1 docs I see something I didn't notice in earlier versions. They mention the # operator, which gives the length of a string:
Code Sample

What I'm curious about is the difference between using this and using the string.len() function:
Code Sample

Any ideas?

Posted by ^thehatsrule^ on Jan. 23 2007,23:34
Maybe it's just a new 'shortcut'.  Every coder loves those :)
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.