[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Q on functions as first class values
- From: David Jones <drj@...>
- Date: Thu, 3 Feb 2005 09:40:05 +0000
On Feb 02, 2005, at 23:56, Luiz Henrique de Figueiredo wrote:
Everytime you call lua_pushstring() a new string is pushed onto the
Only true if the string is new to Lua.
I thought that string interning was an implementation detail not really
to be relied upon. Are you going to guarantee that if I pushstring the
same character sequence I get identical pointers when I tostring them?
p = lua_tostring(l, -1);
q = lua_tostring(l, -2);
c = (p == q);
So you guarantee that c=1 ?