2012年11月9日 星期五

[Lua] identifier

識別字
  • 由字母、數字 (不能當開頭)、或「_」組成的字串
  • 可以自己把「_」預留為 dummy 變數
  • 避免使用「_大寫字母」,例如 _VERSION,Lua 保留作為特殊用途
    • _PROMPT:互動模式時的提示字
  • 保留字:and break do else elseif end false for function if in local nil not or repeat return then true until while
參考:
  1. Programming in Lua (second edition) by Roberto Ierusalimschy, Lua.org, March 2006

沒有留言:

張貼留言

SIP header Via

所有 SIP 訊息 都要有 Via,縮寫 v。一開始的 UAC 和後續途經的每個 proxy 都會疊加一個 Via 放傳送的位址,依序作為回應的路徑。 格式 sent-protocol sent-by [ ;branch= branch ][ ; 參數 ...] s...