Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Lua strings< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 23 2007,20:07 QUOTE

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
len=#s

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

Any ideas?


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Jan. 23 2007,23:34 QUOTE

Maybe it's just a new 'shortcut'.  Every coder loves those :)
Back to top
Profile PM 
1 replies since Jan. 23 2007,20:07 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Lua strings

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code