lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It was thus said that the Great Andrew Gierth once stated:
> 
> [[x]] is a long-bracket string literal, equivalent to "x".
> 
> So t[[x]] is equivalent to  t "x"  which is equivalent to t("x").

  There is a subtle difference---with [[ ]] strings, escape sequences don't
work.  

	"one\ttwo"	=> one      two
	[[one\ttwo]]	=> one\ttwo

Also, the [[ ]] can span multiple lines without issue.

  -spc