[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Speed of #t
- From: Axel Kittenberger <axkibe@...>
- Date: Mon, 13 Dec 2010 18:04:51 +0100
Strings containing a \0 can be better compared to tables containing a
0 as number value. Its defined but zero. Its something different than
nil.
Strings cannot contain a "nil character" - as it doesnt exist, but can
carry 0 characters.
On Mon, Dec 13, 2010 at 5:26 PM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
> On Mon, Dec 13, 2010 at 11:22 AM, HyperHacker <hyperhacker@gmail.com> wrote:
>> I feel this is worth pointing out:
>>> s="ab\0cd"
>>> =#s
>> 5
>>> =s
>> ab
>>
>
> Lua strings can hold any value, including \0, but your console might
> not. that's not Lua's fault.
>
> --
> Javier
>
>
- References:
- Re: [ANN] Lua 5.2.0 (alpha) now available, Richard Hundt
- Re: [ANN] Lua 5.2.0 (alpha) now available, Dirk Laurie
- Re: [ANN] Lua 5.2.0 (alpha) now available, Luiz Henrique de Figueiredo
- Re: [ANN] Lua 5.2.0 (alpha) now available, Enrico Colombini
- Re: [ANN] Lua 5.2.0 (alpha) now available, steve donovan
- Re: [ANN] Lua 5.2.0 (alpha) now available, Geoff Leyland
- Re: [ANN] Lua 5.2.0 (alpha) now available, Enrico Colombini
- Re: [ANN] Lua 5.2.0 (alpha) now available, Peter Cawley
- Re: [ANN] Lua 5.2.0 (alpha) now available, Dirk Laurie
- Re: [ANN] Lua 5.2.0 (alpha) now available, Enrico Colombini
- Speed of #t (was: Re: [ANN] Lua 5.2.0 (alpha) now available, Dirk Laurie
- Re: Speed of #t, Enrico Colombini
- Re: Speed of #t, Axel Kittenberger
- Re: Speed of #t, Enrico Colombini
- Re: Speed of #t, David Kastrup
- Re: Speed of #t, Enrico Colombini
- Re: Speed of #t, David Kastrup
- Re: Speed of #t, Enrico Colombini
- Re: Speed of #t, starwing
- Re: Speed of #t, Axel Kittenberger
- Re: Speed of #t, starwing
- Re: Speed of #t, HyperHacker
- Re: Speed of #t, Javier Guerra Giraldez