lua-users home
lua-l archive

Re: Print address of string in Lua

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


> Hi, I want to print the starting address of string in Lua.
> So is there any method to do that???
No. There is no official way, and (except for debugging) you have no
reason to do that.
If you really need that feature, write a function in C for example like this:
static int string_address(lua_State* L)
{
}

AltStyle によって変換されたページ (->オリジナル) /