[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Arithmetic on strings
- From: Doug Currie <doug.currie@...>
- Date: Wed, 13 Jun 2012 17:31:04 -0400
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
- References:
- Arithmetic on strings, Dirk Laurie
- Re: Arithmetic on strings, Roberto Ierusalimschy
- Re: Arithmetic on strings, Andrew Starks
- Re: Arithmetic on strings, steve donovan
- Re: Arithmetic on strings, liam mail
- Re: Arithmetic on strings, Andrew Starks
- Re: Arithmetic on strings, Javier Guerra Giraldez
- Re: Arithmetic on strings, Roberto Ierusalimschy
- Re: Arithmetic on strings, liam mail
- Re: Arithmetic on strings, Hans Hagen
- Re: Arithmetic on strings, Roberto Ierusalimschy