lua-users home
lua-l archive

Re: Arithmetic on strings

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


On Jun 13, 2012, at 1:38 PM, Roberto Ierusalimschy wrote:
>> (4) format("%s",1)
>> 
>> […]
> 
> I am talking mostly about (1). (2) could be kept, but probably
> implemented through some metamethod by the standard library.
> (3), (4), and others could be handled on an individual basis. (For
> instance, does anyone need string.gsub(10000, 0, 1)?)
+1, especially for (4) above; the tostring conversion in that case is very handy.
e

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