Your proposal is ambiguous. Consider this code: s = "I can shout!" u = s:uppers = "I can shout!"u = s:upper()("hello"):gsub(".",print) Is the last line part of the second statement?