[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Print address of string in Lua
- From: rahul sharma <rahulatgslab@...>
- Date: Thu, 15 Dec 2011 18:20:23 +0530
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???