os.setenv()???
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: os.setenv()???
- From: Chris Marrin <chris@...>
- Date: 2006年1月06日 11:23:18 -0800
It seems like the os library should have a setenv() function to match
the getenv() function. Something like:
static int io_setenv (lua_State *L) {
::putenv(lua_tostring(L,1), lua_tostring(L,2));
return 0;
}
Is there a reason for it not being there, or is it just an oversight?
--
chris marrin ,"",ドル
chris@marrin.com b` $ ,,.
mP b' , 1$'
,.` ,b` ,` :$$'
,|` mP ,` ,mm
,b" b" ,` ,mm m$$ ,m ,`P$$
m$` ,b` .` ,mm ,'|$P ,|"1$` ,b$P ,` :1ドル
b$` ,$: :,`` |$$ ,` $$` ,|` ,$,,ドル`"$$ .` :$|
b$| _m$`,:` :1ドル ,` ,$Pm|` ` :$,ドル..;"' |$:
P$b, _;b$$b1ドル" |$$ ,` ,$$" ``' $$
```"```'" `"` `""` ""` ,P`
"As a general rule,don't solve puzzles that open portals to Hell"'