lua-users home
lua-l archive

[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 way using which I can do that? for ex:-

    x="abc"

Now I want to print the address where abc is stored. So is there any way to do it?? I will then pass this x to a c program and then try to print the address of x received to see that lua doesnot copy string but uses reference to the base address.

So is there any method to do that???