[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
**Subject**: **Re: Arithmetic on strings**
**From**: Javier Guerra Giraldez <javier@...>
**Date**: Wed, 13 Jun 2012 17:18:00 -0500

On Wed, Jun 13, 2012 at 5:03 PM, Rena <hyperhacker@gmail.com> wrote:
> So, my ideal change would be to remove all implicit conversion between
> strings and numbers, but provide a default __concat that allows
> concatenating numbers and strings.
mine would be: remove implicit conversions from the core language and
C API (making Lua a more strongly typed language) and make
table.concat() and string.format()'s "%s" call __tostring, which would
have default values.
--
Javier

**References**:
**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*
**Re: Arithmetic on strings, ***Hans Hagen*
**Re: Arithmetic on strings, ***Roberto Ierusalimschy*
**Re: Arithmetic on strings, ***Hans Hagen*
**Re: Arithmetic on strings, ***Roberto Ierusalimschy*
**Re: Arithmetic on strings, ***Rena*