lua-users home
lua-l archive

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


There's no way to get the address of a string in pure lua.

On 12/15/11, rahul sharma <rahulatgslab@gmail.com> wrote:
> Hi All,
>
> Thanks for your kind reply. Why I want the address in Lua is because I want
> to know the address in Lua, then I will pass that string to C, and in C, I
> will get the address of that string using lua_tostring(). So if these two
> match, then I can be sure that no copying is done in lua on passing string
> from Lua to C.
>

-- 
Sent from my mobile device

NI!