[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to follow 80 Column format in Lua
- From: Pierre Chapuis <catwell@...>
- Date: Thu, 09 Feb 2012 10:59:55 +0100
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