lua-users home
lua-l archive

Re: How to follow 80 Column format in Lua

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


On 2012年02月09日 10:35, Petite Abeille wrote:
Then simply concatenate your strings:
print
(
 "Case: (Flow_Entry=Nil and direction=SERVER_TO_CLIENT): " ..
 "Wrong packet received. Flow_entry not there for flow and " ..
 "packet received from " ..
 "server."
)
Or use format:
print
(
 ( '%s%s%s%s' ):format
 (
 "Case: (Flow_Entry=Nil and direction=SERVER_TO_CLIENT): ",
 "Wrong packet received. Flow_entry not there for flow and ",
 "packet received from ",
 "server."
 )
)
Yet another alternative style:
print(table.concat{
 "Case: (Flow_Entry=Nil and direction=SERVER_TO_CLIENT): ",
 "Wrong packet received. Flow_entry not there for flow and ",
 "packet received from ",
 "server."
})
--
Pierre 'catwell' Chapuis

AltStyle によって変換されたページ (->オリジナル) /