LuaLibraries.wiki
changeset 868 0b400b3e05cc
parent 867 30cc2f85c5e7
child 933 404dfa2f8a23
equal deleted inserted replaced
867:30cc2f85c5e7 868:0b400b3e05cc
    37 </code>
    37 </code>
    38 
    38 
    39 These are all _incorrect_ usages of the `loc` function:
    39 These are all _incorrect_ usages of the `loc` function:
    40 <code language="lua">
    40 <code language="lua">
    41 local l
    41 local l
    42 l = loc( "Hello World")    -- Contains space. This is valid Lua code but
    42 l = loc( "Hello World")    -- Contains space
    43 l = loc ("Hello World")    -- Contains space
    43 l = loc ("Hello World")    -- Contains space
    44 l = loc('Hello World')     -- Not double quotes
    44 l = loc('Hello World')     -- Not double quotes
    45 local str = "Hello World"
    45 local str = "Hello World"
    46 l = loc(str)   -- Not a literal string
    46 l = loc(str)   -- Not a literal string
    47 l = loc(str .. ", how are you?")   -- Only partially a literal string
    47 l = loc(str .. ", how are you?")   -- Only partially a literal string