lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
import function c implementation.
From
: Karol Dro <karoldro@
...
>
Date
: Wed, 29 May 2013 14:40:42 +0200
Hi
I have implemented "import" function in Lua.
function import (module_name)
require (module_name)
local m = package.loaded [module_name]
local fenv = getfenv (1)
for k, v in pairs (m) do fenv [k] = v end
end
I want to implement this function in C.
Can someone give me a hint on how I can copy the contents of one array to another?
--
Karol Drożak
Follow-Ups
:
Re: import function c implementation.
,
Kevin Martin
Prev by Date:
Re: Pseudo-Complete Lua Syntax
Next by Date:
Re: import function c implementation.
Previous by thread:
Re: reallycheckint(L,index)
Next by thread:
Re: import function c implementation.
Index(es):
Date
Thread