lua-users home
lua-l archive

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


Okay, I read the manual this time and even tried searching the archives, so now I can safely ask...

Is there some trick I can use to create a local variable in a chunk from C? What I'm trying to is create Lua function like:

	CreateNewType("NewTypeName")

Which will do some bookkeeping on the C side, and then set a local variable named "NewTypeName". Must be local. I know I can do

	local NewTypeName = CreateNewType("NewTypeName")

I'm just trying to be overly clever. ;)

Thanks,
Jason
379