Concatenation of strings in Lua

后端 未结 4 741
庸人自扰
庸人自扰 2021-01-31 01:10

In many languages you can concatenate strings on variable assignment. I have a scenario, using the Lua programming language, where I need to append the output of a command to a

4条回答
  •  旧巷少年郎
    2021-01-31 02:04

    If you are asking whether there's shorthand version of operator .. - no there isn't. You cannot write a ..= b. You'll have to type it in full: filename = filename .. ".tmp"

提交回复
热议问题